public void TakeDecision_ShouldApproveIfMonthlyIncomeIsGood() { var model = LoanApplicationModelFactory.CreateModelWithIncome(31001); var target = new StandardDecisionTaker(); var result = target.TakeDecision(model); result.Decision.Should().BeTrue(); }
public void TakeDecision_ShouldDenyIfMonthlyIncomeIsToLow() { var model = LoanApplicationModelFactory.CreateModelWithIncome(31000); var target = new StandardDecisionTaker(); var result = target.TakeDecision(model); result.Decision.Should().BeFalse(); }