コード例 #1
0
 public PrepayableMortgage(IMortgage baseMortgage, IMonthlyPaymentCalculator calculator, decimal maximumAllowedPrepaymentPercentage = 0.10M)
 {
     BaseMortgage = baseMortgage;
     Calculator   = calculator;
     Prepayments  = new CappedPayments(InitialValue * maximumAllowedPrepaymentPercentage);
 }
コード例 #2
0
ファイル: Mortgage.cs プロジェクト: ofer987/Financier
 protected Mortgage(IMonthlyPaymentCalculator calculator, decimal baseValue, decimal interestRate, int amortisationPeriodInMonths, DateTime initiatedAt) : this(baseValue, interestRate, amortisationPeriodInMonths, initiatedAt)
 {
     Calculator = calculator;
 }