public void GetByIdShouldReturnValidEntity()
        {
            Speciality result =
                repository.GetById("http://localhost:3030/speciality-vocabulary/lists/3/speciality/44.03.05/1");

            Assert.AreNotEqual(null, result, "Get ничего не вернул");
        }
 public IHttpActionResult Get(string id)
 {
     try
     {
         return(Ok(MapEntityToModel(_repository.GetById(id))));
     }
     catch (Exception e)
     {
         return(HandleException(e));
     }
 }
Example #3
0
 public async Task <Specialty> GetSpecialtyById(int id)
 {
     return(await _specialtyRepository.GetById(id));
 }
Example #4
0
 public Speciality GetSpeciality(Guid id)
 {
     return(_repository.GetById(id));
 }
Example #5
0
 public Speciality GetSpecialtyById(int id)
 {
     return(_specialtyRepository.GetById(id));
 }