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