Exemplo n.º 1
0
 public RepayInterestStrategy(CreditContractOptions pCCO)
 {
     if (pCCO.CancelInterests && pCCO.KeepExpectedInstallments)
         _methodToCalculateInterest = new ManualMethod();
     else
         _methodToCalculateInterest = new AutomaticMethod();
 }
Exemplo n.º 2
0
 public RepayInterestStrategy(CreditContractOptions pCCO)
 {
     if (pCCO.CancelInterests && pCCO.KeepExpectedInstallments)
     {
         _methodToCalculateInterest = new ManualMethod();
     }
     else
     {
         _methodToCalculateInterest = new AutomaticMethod();
     }
 }