public async Task CreateTagValueWithoutCreatingTag() { string tagName = Recording.GenerateAssetName("csmtg"); string tagValue = Recording.GenerateAssetName("csmtgv"); try { await TagsOperations.CreateOrUpdateValueAsync(tagName, tagValue); } catch (Exception ex) { Assert.NotNull(ex); } }
public async Task CreateListAndDeleteSubscriptionTagValue() { string tagName = Recording.GenerateAssetName("csmtg"); string tagValue = Recording.GenerateAssetName("csmtgv"); var createNameResult = await TagsOperations.CreateOrUpdateAsync(tagName); var createValueResult = await TagsOperations.CreateOrUpdateValueAsync(tagName, tagValue); Assert.AreEqual(tagName, createNameResult.Value.TagName); Assert.AreEqual(tagValue, createValueResult.Value.TagValueValue); var listResult = await TagsOperations.ListAsync().ToEnumerableAsync(); Assert.True(listResult.Count() > 0); await TagsOperations.DeleteValueAsync(tagName, tagValue); await TagsOperations.DeleteAsync(tagName); }