Пример #1
0
        public void TotalMoneySavedTest()
        {
            PayoffModel   model = new PayoffModel(259000, 4, 30, 25, 1236.51);
            TotalInterest save  = new TotalInterest(model);
            double        total = save.Algorithm();

            Assert.Equal(16074.63, model.TotalMoneySaved);
        }
Пример #2
0
        public void TotalMoneyPaidTest()
        {
            PayoffModel   model = new PayoffModel(259000, 4, 30, 0, 1236.51);
            TotalInterest save  = new TotalInterest(model);
            double        total = save.Algorithm();

            Assert.Equal(445143.60, total);
        }
Пример #3
0
 public TotalInterest(PayoffModel model)
 {
     Model = model;
 }