public async Task ShouldInsert() { var tag = await _tagManager.InsertAsync(Guid.NewGuid(), "test", "test"); tag.ShouldNotBeNull(); var doesExist = await _tagRepository.AnyAsync("test", "test"); doesExist.ShouldBeTrue(); }
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(); }