Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ServiceManagementCmdletTestHelper.GetAzureLocation C# (CSharp) Method

GetAzureLocation() public method

public GetAzureLocation ( ) : Collection
return Collection
        public Collection<LocationsContext> GetAzureLocation()
        {
            GetAzureLocationCmdletInfo getAzureLocationCmdlet = new GetAzureLocationCmdletInfo();
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(getAzureLocationCmdlet);

            Collection<LocationsContext> locationsContext = new Collection<LocationsContext>();
            foreach (PSObject result in azurePowershellCmdlet.Run())
            {
                locationsContext.Add((LocationsContext)result.BaseObject);
            }
            return locationsContext;
        }
ServiceManagementCmdletTestHelper