Beispiel #1
0
        public void print_a_repayment_details_quote()
        {
            var repayment    = new Repayment(principal, monthlyRepayment, totalRepayment, annualInterestRate);
            var quotePrinter = new QuotePrinter(console.Object);

            quotePrinter.PrintQuote(repayment);

            console.Verify(a => a.WriteLine("Requested amount: £1"));
            console.Verify(a => a.WriteLine("Rate: 10.0%"));
            console.Verify(a => a.WriteLine("Monthly repayment: £2.22"));
            console.Verify(a => a.WriteLine("Total repayment: £3333.33"));
        }