Esempio n. 1
0
        public void ShouldNotApproveLoadAmount()
        {
            var loanExecutive = new LoanExecutive();

            LoanRequest loanRequest1 = loanExecutive.RequestForLoanApprove("123", false, 100000);

            loanRequest1.Approved.Should().BeFalse();
            loanRequest1.ApprovedBy.Should().BeNull();
        }
Esempio n. 2
0
        public void ShouldApproveLoadAmount()
        {
            var loanExecutive = new LoanExecutive();

            LoanRequest loanRequest1 = loanExecutive.RequestForLoanApprove("123", false, 100);

            LoanRequest loanRequest2 = loanExecutive.RequestForLoanApprove("123", true, 100000);

            loanRequest1.Approved.Should().BeTrue();
            loanRequest1.ApprovedBy.GetApproverId().Should().NotBeNullOrEmpty();

            loanRequest2.Approved.Should().BeTrue();
            loanRequest2.ApprovedBy.GetApproverId().Should().NotBeNullOrEmpty();
        }