Beispiel #1
0
        public static void BeforeTestRun()
        {
            SetupHolidays();
            Settings.AddParameter("INCREMENTAL_DURING_DAYOFFS", true);
            Settings.AddParameter("DONOT_SKIP_WEEKENDS_IN_INSTALLMENTS_DATE", false);
            Settings.AddParameter("USE_CENTS", false);
            Settings.AddParameter("PAY_FIRST_INSTALLMENT_REAL_VALUE", true);
            Settings.AddParameter("ALIGN_INSTALLMENTS_ON_REAL_DISBURSEMENT_DATE", false);
            Settings.AddParameter("WEEK_END_DAY1", 6);
            Settings.AddParameter("WEEK_END_DAY2", 0);

            NonWorkingDays.WeekEndDay1 = 6;
            NonWorkingDays.WeekEndDay2 = 0;

            _configurationFactory = new OctopusScheduleConfigurationFactory(NonWorkingDays);

            _cultureInfo = new CultureInfo("ru-RU");
        }
 public void SetUp()
 {
     _factory = new OctopusScheduleConfigurationFactory(NonWorkingDateSingleton.GetInstance(string.Empty));
     _loan = new Loan
     {
         Amount = 0m,
         NbOfInstallments = 0,
         GracePeriod = 0,
         InterestRate = 0,
         StartDate = DateTime.Today,
         FirstInstallmentDate = DateTime.Today,
         Product = new LoanProduct
         {
             LoanType = OLoanTypes.Flat,
             Currency = new Currency { Name = "USD" },
         },
         InstallmentType = new InstallmentType { NbOfDays = 0, NbOfMonths = 1 },
     };
 }
Beispiel #3
0
 public void SetUp()
 {
     _factory = new OctopusScheduleConfigurationFactory(NonWorkingDateSingleton.GetInstance(string.Empty));
     _loan    = new Loan
     {
         Amount               = 0m,
         NbOfInstallments     = 0,
         GracePeriod          = 0,
         InterestRate         = 0,
         StartDate            = DateTime.Today,
         FirstInstallmentDate = DateTime.Today,
         Product              = new LoanProduct
         {
             LoanType = OLoanTypes.Flat,
             Currency = new Currency {
                 Name = "USD"
             },
         },
         InstallmentType = new InstallmentType {
             NbOfDays = 0, NbOfMonths = 1
         },
     };
 }
Beispiel #4
0
        public LoanServices(User pUser)
            : base(pUser)
        {
            _user = pUser;
            _loanManager = new LoanManager(pUser);
            _instalmentManager = new InstallmentManager(pUser);
            _clientManager = new ClientManager(pUser, true, true);
            _branchService = new BranchService(pUser);
            _econimcActivityServices = new EconomicActivityServices(pUser);
            _ePs = ServicesProvider.GetInstance().GetEventProcessorServices();
            _accountingServices = new AccountingServices(pUser);
            _fundingLineServices = new FundingLineServices(pUser);
            _savingServices = new SavingServices(pUser);
            _savingEventManager = new SavingEventManager(pUser);

            var settings = ApplicationSettings.GetInstance(string.Empty);
            var nonWorkingDate = NonWorkingDateSingleton.GetInstance(string.Empty);
            _configurationFactory = new OctopusScheduleConfigurationFactory(nonWorkingDate, settings);

            MefContainer.Current.Bind(this);
        }