public async Task DeleteTest() { await(await ConfigStore.DeleteAsync()).WaitForCompletionResponseAsync(); ConfigurationStore configurationStore = await ResGroup.GetConfigurationStores().GetIfExistsAsync(ConfigurationStoreName); Assert.IsNull(configurationStore); }
public async Task DeleteTest() { await ConfigStore.DeleteAsync(true); ConfigurationStore configurationStore = await ResGroup.GetConfigurationStores().GetIfExistsAsync(ConfigurationStoreName); Assert.IsNull(configurationStore); }
public async Task DeleteTest() { await ConfigStore.DeleteAsync(WaitUntil.Completed); var exception = Assert.ThrowsAsync <RequestFailedException>(async() => { ConfigurationStoreResource configurationStore = await ResGroup.GetConfigurationStores().GetAsync(ConfigurationStoreName); }); Assert.AreEqual(404, exception.Status); }