public void GetLoanRepaymentDetails_Returns_LoanDetails()
        {
            LoanDetails loanDetails = new LoanDetails();

            _mortageApiProvider.GetLoanRepaymentDetails(loanDetails).Returns(loanDetails);
            var controller = new MortgageController(_mortageApiProvider);
            PartialViewResult viewResult = controller.GetLoanRepaymentDetails(loanDetails) as PartialViewResult;

            Assert.AreEqual(loanDetails, viewResult.Model);
        }
Exemplo n.º 2
0
        public ActionResult GetLoanRepaymentDetails(LoanDetails loandetails)
        {
            var loanResult = _iMortageApiProvider.GetLoanRepaymentDetails(loandetails);

            return(PartialView("~/Views/Mortgage/LoanRepaymentDetails.cshtml", loanResult));
        }