Ejemplo n.º 1
0
        public void TakeDecision_ShouldApproveIfMonthlyIncomeIsGood()
        {
            var model  = LoanApplicationModelFactory.CreateModelWithIncome(31001);
            var target = new StandardDecisionTaker();
            var result = target.TakeDecision(model);

            result.Decision.Should().BeTrue();
        }
Ejemplo n.º 2
0
        public void TakeDecision_ShouldDenyIfMonthlyIncomeIsToLow()
        {
            var model  = LoanApplicationModelFactory.CreateModelWithIncome(31000);
            var target = new StandardDecisionTaker();
            var result = target.TakeDecision(model);

            result.Decision.Should().BeFalse();
        }