예제 #1
0
        public void GetLoanApplicationDecision_ShouldReturnDecision()
        {
            var model = LoanApplicationModelFactory.CreateBasicModelWithDecision().WithId(123);

            _fakeLoanApplicationContextFacade.LoanApplicationModels.Add(model);
            var result = _target.GetApplicationDecision(123);

            result.Should().NotBeNull();
            result.Decision.Should().BeFalse();
        }
예제 #2
0
        public IActionResult GetApplicationDecision(int id)
        {
            var data = _loanApplicationLogic.GetApplicationDecision(id);

            if (data == null)
            {
                return(NotFound());
            }
            return(Ok(data.Decision));
        }