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(); }
public IActionResult GetApplicationDecision(int id) { var data = _loanApplicationLogic.GetApplicationDecision(id); if (data == null) { return(NotFound()); } return(Ok(data.Decision)); }