Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void GetSingleInquiry()
        {
            var actual = _inquiryRepo.Get(1);

            Assert.AreEqual(1, actual.Id);
        }