Exemplo n.º 1
0
        public async Task RemoveTagTest()
        {
            Dictionary <string, string> tags = new Dictionary <string, string> {
                { "key1", "Value1" }, { "key2", "vaule2" }
            };
            await ConfigStore.SetTagsAsync(tags);

            await ConfigStore.RemoveTagAsync("key1");

            ConfigurationStore configurationStore = await ResGroup.GetConfigurationStores().GetAsync(ConfigurationStoreName);

            Assert.IsFalse(configurationStore.Data.Tags.ContainsKey("key1"));
            Assert.IsTrue(configurationStore.Data.Tags.ContainsKey("key2"));
        }