public void Tag_GetByIdTest() { using (var uow = ObjectFactory.GetInstance <IUnitOfWork>()) { var testTag = CreateTagDo(1, "key1", "value1"); var searchTag = _tagService.GetById(testTag.Id); Assert.IsNotNull(searchTag); Assert.IsTrue(searchTag.Id == testTag.Id); } }
public DtoTag TagGetById(int id) { return(_Tag.GetById(id)); }