Пример #1
0
        public void GetByIdShouldReturnValidEntity()
        {
            DissertationCouncil result =
                repository.GetById("http://www.semanticweb.org/давид/ontologies/2017/4/untitled-ontology-25#Д_001.001.01");

            Assert.AreNotEqual(null, result, "Get ничего не вернул");
        }
Пример #2
0
 public IHttpActionResult Get(string id)
 {
     try
     {
         return(Ok(MapEntityToModel(_repository.GetById(id))));
     }
     catch (Exception e)
     {
         return(HandleException(e));
     }
 }