public async Task TestListOrdersAtSubscriptionLevel() { AsyncPageable <OrderResource> orders = EdgeOrderExtensions.GetOrderResourcesAsync(Subscription); List <OrderResource> ordersResult = await orders.ToEnumerableAsync(); Assert.NotNull(ordersResult); Assert.IsTrue(ordersResult.Count >= 1); }
public async Task TestListAddressesAtSubscriptionLevel() { AsyncPageable <AddressResource> addresses = EdgeOrderExtensions.GetAddressResourcesAsync(Subscription); List <AddressResource> addressesResult = await addresses.ToEnumerableAsync(); Assert.NotNull(addressesResult); Assert.IsTrue(addressesResult.Count >= 1); }
public async Task TestListProductFamiliesMetadata() { AsyncPageable <ProductFamiliesMetadataDetails> productFamiliesMetadata = EdgeOrderExtensions.GetProductFamiliesMetadataAsync(Subscription); List <ProductFamiliesMetadataDetails> productFamiliesMetadataResult = await productFamiliesMetadata.ToEnumerableAsync(); Assert.NotNull(productFamiliesMetadataResult); Assert.IsTrue(productFamiliesMetadataResult.Count >= 1); }
public async Task TestListOrdersAtResourceGroupLevel() { ResourceGroupResource rg = await GetResourceGroupAsync(_resourceGroupName); AsyncPageable <OrderResource> orders = EdgeOrderExtensions.GetOrderResourcesAsync(rg); List <OrderResource> ordersResult = await orders.ToEnumerableAsync(); Assert.NotNull(ordersResult); Assert.IsTrue(ordersResult.Count >= 1); }
public async Task TestListConfigurations() { ConfigurationFilters configurationFilters = new(GetHierarchyInformation()); configurationFilters.FilterableProperty.Add(new FilterableProperty(SupportedFilterTypes.ShipToCountries, new List <string>() { "US" })); ConfigurationsContent configurationsRequest = new( new List <ConfigurationFilters>() { configurationFilters }); AsyncPageable <ProductConfiguration> configurations = EdgeOrderExtensions.GetConfigurationsAsync(Subscription, configurationsRequest); List <ProductConfiguration> configurationsResult = await configurations.ToEnumerableAsync(); Assert.NotNull(configurationsResult); Assert.IsTrue(configurationsResult.Count >= 1); }
public async Task TestListProductFamilies() { IList <FilterableProperty> filterableProperty = new List <FilterableProperty>() { new FilterableProperty(SupportedFilterTypes.ShipToCountries, new List <string>() { "US" }) }; IDictionary <string, IList <FilterableProperty> > filterableProperties = new Dictionary <string, IList <FilterableProperty> >() { { "azurestackedge", filterableProperty } }; ProductFamiliesContent productFamiliesRequest = new(filterableProperties); AsyncPageable <ProductFamily> productFamilies = EdgeOrderExtensions.GetProductFamiliesAsync(Subscription, productFamiliesRequest); List <ProductFamily> productFamiliesResult = await productFamilies.ToEnumerableAsync(); Assert.NotNull(productFamiliesResult); Assert.IsTrue(productFamiliesResult.Count >= 1); }