コード例 #1
0
        public void Mortgage_Get()
        {
            _mockRepository.Setup(x => x.GetAll()).Returns(_listMortgages);
            Mortgage results = _service.GetbyId(1) as Mortgage;

            Assert.AreEqual(1, results.MortgageId);
        }
コード例 #2
0
 public ActionResult GetById(int id)
 {
     return(View(_mortgageService.GetbyId(id)));
 }
コード例 #3
0
 // GET: api/Mortgage/5
 public Mortgage Get(int id)
 {
     return(_mortgageService.GetbyId(id));
 }