public RepayInterestStrategy(CreditContractOptions pCCO) { if (pCCO.CancelInterests && pCCO.KeepExpectedInstallments) _methodToCalculateInterest = new ManualMethod(); else _methodToCalculateInterest = new AutomaticMethod(); }
public RepayInterestStrategy(CreditContractOptions pCCO) { if (pCCO.CancelInterests && pCCO.KeepExpectedInstallments) { _methodToCalculateInterest = new ManualMethod(); } else { _methodToCalculateInterest = new AutomaticMethod(); } }