public void Tag_GetByKeyTest() { using (var uow = ObjectFactory.GetInstance <IUnitOfWork>()) { var testTag = CreateTagDo(1, "key1", "value1"); var searchTag = _tagService.GetByKey(testTag.Key); Assert.IsNotNull(searchTag); Assert.IsTrue(searchTag.Key == testTag.Key); } }