示例#1
0
 public Loan Repay()
 {
     var newSettings = (RepaymentSettings) Settings.Clone();
     var script = RunScript();
     script.Main(newSettings);
     Settings = newSettings;
     return Settings.Loan;
 }
示例#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;
 }
示例#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();
 }
示例#6
0
 public RepaymentService()
 {
     Settings = new RepaymentSettings();
 }