예제 #1
0
 public virtual decimal GetTotalInterest(decimal amount, decimal rate, IPaybackStrategy paybackStrategy)
 {
     return(paybackStrategy.CalculateTotalInterest(amount, rate));
 }
예제 #2
0
 public virtual decimal GetMonthlyInterest(decimal amount, decimal rate, int month, IPaybackStrategy paybackStrategy)
 {
     return(paybackStrategy.CalculateMonthlyInterest(amount, rate, month));
 }