Exemplo n.º 1
0
        public async Task ShouldInsert()
        {
            var tag = await _tagManager.InsertAsync(Guid.NewGuid(), "test", "test");

            tag.ShouldNotBeNull();

            var doesExist = await _tagRepository.AnyAsync("test", "test");

            doesExist.ShouldBeTrue();
        }
Exemplo n.º 2
0
        public async Task ShouldInsertAsync()
        {
            var tagName = "Freshly Created New Tag";
            var tag     = await _tagManager.InsertAsync(Guid.NewGuid(), _cmsKitTestData.EntityType1, tagName);

            tag.ShouldNotBeNull();

            var doesExist = await _tagRepository.AnyAsync(_cmsKitTestData.EntityType1, tagName);

            doesExist.ShouldBeTrue();
        }