Then why is the flag there at all?


From: Abdelrahman Elogeel [mailto:notifications@github.com]
Sent: Monday, February 4, 2013 4:02 PM
To: WindowsAzure/azure-sdk-tools
Cc: Chris Tavares
Subject: Re: [azure-sdk-tools] Extract ServiceBus contracts from ServiceManagement contracts (#999)


In WindowsAzurePowershell/src/Management.ServiceBus.Test/Stubs/SimpleServiceBusManagement.cs:

> +        {

> +            ServiceBusNamespace serviceBusNamespase = new ServiceBusNamespace();

> +

> +            if (GetNamespaceThunk != null)

> +            {

> +                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;

> +                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

> +

> +                serviceBusNamespase = GetNamespaceThunk(result);

> +            }

> +            else if (ThrowsIfNotImplemented)

> +            {

> +                throw new NotImplementedException("GetNamespaceThunk is not implemented!");

> +            }

> +

> +            return serviceBusNamespase;

We don't use ThrowsIfNotImplemented with false

—
Reply to this email directly or view it on GitHub<https://github.com/WindowsAzure/azure-sdk-tools/pull/999/files#r2885864>.