private void ProcessMonths(DateTime start)
        {
            var processService = new ProcessService(new TestLogger());

            var periodId       = 1;
            var date           = start.NextCensusDate();
            var endDate        = StepDefinitionsContext.GetIlrEndDate();
            var lastCensusDate = endDate.NextCensusDate();

            while (date <= lastCensusDate)
            {
                var period = date.GetPeriod();

                SetupPeriodReferenceData(date);

                UpdateAccountsBalances(period);

                var academicYear = date.GetAcademicYear();

                SetupEnvironmentVariablesForMonth(date, academicYear, ref periodId);

                foreach (var provider in StepDefinitionsContext.Providers)
                {
                    SubmitIlr(provider,
                              academicYear,
                              date,
                              processService);
                }

                SubmitMonthEnd(date, processService);

                date = date.AddDays(15).NextCensusDate();
            }
        }
예제 #2
0
        public void ThenTheDataLockStatusWillBeAsFollows(Table table)
        {
            var date    = StepDefinitionsContext.GetIlrStartDate().NextCensusDate();
            var endDate = StepDefinitionsContext.GetIlrEndDate();

            while (date <= endDate)
            {
                var period = date.GetPeriod();

                foreach (var provider in StepDefinitionsContext.Providers)
                {
                    VerifyProviderDataLockMatchesForPeriod(period, table, provider);
                }

                date = date.AddDays(15).NextCensusDate();
            }
        }