public PrepayableMortgage(IMortgage baseMortgage, IMonthlyPaymentCalculator calculator, decimal maximumAllowedPrepaymentPercentage = 0.10M) { BaseMortgage = baseMortgage; Calculator = calculator; Prepayments = new CappedPayments(InitialValue * maximumAllowedPrepaymentPercentage); }
protected Mortgage(IMonthlyPaymentCalculator calculator, decimal baseValue, decimal interestRate, int amortisationPeriodInMonths, DateTime initiatedAt) : this(baseValue, interestRate, amortisationPeriodInMonths, initiatedAt) { Calculator = calculator; }