Beispiel #1
0
        public async Task <ActionResult> GetLoanApplication(int id)
        {
            var loan = await _repo.GetLoanApplicationByIdAsync(id);

            var resource = ApiMapper.MapApplication(loan);

            if (resource != null)
            {
                return(Ok(resource));
            }


            return(NotFound());
        }
        public void MapApplication_StateUnderTest_ExpectedBehavior()
        {
            var apiMapper = this.CreateApiMapper();
            CoreLoanApplication application = new CoreLoanApplication
            {
                ApprovalDenialComformation = true,
                LoanAmount  = 1,
                CreditScore = 1,
                EstIncome   = 1,
                Id          = 1,
                Ssn         = "1",
                UserId      = 1
            };
            var result = ApiMapper.MapApplication(
                application);

            Assert.True(true);
            this.mockRepository.VerifyAll();
        }