public Response <Inquiry> Get(int id) { var response = new Response <Inquiry>(); try { response.Data = _inquiryRepo.Get(id); response.Success = true; } catch (Exception) { response.Data = new Inquiry(); response.Success = false; } return(response); }
public void GetSingleInquiry() { var actual = _inquiryRepo.Get(1); Assert.AreEqual(1, actual.Id); }