public async Task TestSetUp() { if (Mode == RecordedTestMode.Record || Mode == RecordedTestMode.Playback) { Initialize(); string groupName = Recording.GenerateAssetName(ResourceGroupPrefix); ResGroup = (await ArmClient.GetDefaultSubscriptionAsync().Result.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, groupName, new ResourceGroupData(Location))).Value; string configurationStoreName = Recording.GenerateAssetName("testapp-"); ConfigurationStoreData configurationStoreData = new ConfigurationStoreData(Location, new AppConfigurationSku("Standard")) { PublicNetworkAccess = PublicNetworkAccess.Disabled }; ConfigStore = (await ResGroup.GetConfigurationStores().CreateOrUpdateAsync(WaitUntil.Completed, configurationStoreName, configurationStoreData)).Value; LinkResource = await ConfigStore.GetAppConfigurationPrivateLinkResources().GetAsync("configurationStores"); } }
public async Task GetTest() { AppConfigurationPrivateLinkResource linkResource = await LinkResource.GetAsync(); Assert.IsTrue(LinkResource.Data.Name.Equals(linkResource.Data.Name)); }
public async Task GetTest() { AppConfigurationPrivateLinkResource linkResource = await ConfigStore.GetAppConfigurationPrivateLinkResources().GetAsync("configurationStores"); Assert.NotNull(linkResource); }