Ejemplo n.º 1
0
 public Loan Repay()
 {
     var newSettings = (RepaymentSettings) Settings.Clone();
     var script = RunScript();
     script.Main(newSettings);
     Settings = newSettings;
     return Settings.Loan;
 }
Ejemplo n.º 2
0
        public Loan Repay()
        {
            var newSettings = (RepaymentSettings)Settings.Clone();
            var script      = RunScript();

            script.Main(newSettings);
            Settings = newSettings;
            return(Settings.Loan);
        }
Ejemplo n.º 3
0
 public Loan Repay()
 {
     var newSettings = (RepaymentSettings)Settings.Clone();
     var script = RunScript(newSettings.ScriptName);
     if (newSettings.DateChanged)
         script.GetInitAmounts(newSettings);
     if (newSettings.AmountChanged)
         script.GetAmounts(newSettings);
     script.Repay(newSettings);
     Settings = newSettings;
     return Settings.Loan;
 }
Ejemplo n.º 4
0
        public Loan Repay()
        {
            var newSettings = (RepaymentSettings)Settings.Clone();
            var script      = RunScript(newSettings.ScriptName);

            if (newSettings.DateChanged)
            {
                script.GetInitAmounts(newSettings);
            }
            if (newSettings.AmountChanged)
            {
                script.GetAmounts(newSettings);
            }
            script.Repay(newSettings);
            Settings = newSettings;
            return(Settings.Loan);
        }
Ejemplo n.º 5
0
 public RepaymentService()
 {
     Settings = new RepaymentSettings();
 }
Ejemplo n.º 6
0
 public RepaymentService()
 {
     Settings = new RepaymentSettings();
 }