Exemplo n.º 1
0
 protected Mortgage(decimal baseValue, decimal interestRate, int amortisationPeriodInMonths, DateTime initiatedAt) : this()
 {
     Calculator = new MonthlyPaymentCalculator();
     BaseValue  = baseValue;
     AmortisationPeriodInMonths = amortisationPeriodInMonths;
     InterestRate = interestRate;
     InitiatedAt  = initiatedAt;
 }
Exemplo n.º 2
0
 public PrepayableMortgage(IMortgage baseMortgage, decimal maximumAllowedPrepaymentPercentage = 0.10M)
 {
     BaseMortgage = baseMortgage;
     Calculator   = new MonthlyPaymentCalculator();
     Prepayments  = new CappedPayments(InitialValue * maximumAllowedPrepaymentPercentage);
 }