public void GetByIdShouldReturnValidEntity() { ScientificSpeciality result = repository.GetById("http://localhost:3030/speciality-vocabulary/lists/3/scientificspeciality/14.03.08/4"); Assert.AreNotEqual(null, result, "Get ничего не вернул"); }
public IHttpActionResult Get(string id) { try { return(Ok(MapEntityToModel(_repository.GetById(id)))); } catch (Exception e) { return(HandleException(e)); } }