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

            script.Main(newSettings);
            Settings = newSettings;
            return(Settings.Loan);
        }
 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;
 }
Exemple #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);
        }
 public RepaymentService()
 {
     Settings = new RepaymentSettings();
 }
Exemple #6
0
 public RepaymentService()
 {
     Settings = new RepaymentSettings();
 }