Example #1
0
        public void DeleteTagTest()
        {
            var tagInfo  = _userTagService.Create("TestAdd");
            var tagInfos = _userTagService.Get();
            var tt       = tagInfos.FirstOrDefault(p => p.Name == tagInfo.Name);

            Assert.NotNull(tt);
            _userTagService.Delete(tt.Id);
            var tagInfos1 = _userTagService.Get();

            Assert.False(tagInfos1.Any(p => p.Name == tagInfo.Name));
        }