public void ShouldCalculateMonthlyPrincipalBasedOnLoanAmountAndYears()
        {
            var loan = new LoanStub(new LoanParameters { Amount = 120, Years = 1 });

            var result = _scheme.NextMonthlyPrincipal(loan);

            Assert.AreEqual(10, result);
        }
        public void ShouldCalculateMonthlyInterestBasedOnRemainingAmount()
        {
            var loan = new LoanStub(new LoanParameters { Amount = 120, Years = 1 });
            loan.Remaining = 60.0m;

            var result = _scheme.NextMonthlyInterest(loan);

            Assert.AreEqual(5.0, (double)result,0.0000001d);
        }