Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 public DtoTag TagGetById(int id)
 {
     return(_Tag.GetById(id));
 }