protected IPayrollCalculator CreatePayrollCalculatorInternal(int taxYear)
        {
            var niEngine   = niCalculationEngineFactory.CreateNiCalculationEngine(taxYear);
            var payeEngine = payeCalculationEngineFactory.CreatePayeCalculationEngine(taxYear);

            return(new PayrollCalculator(niEngine, payeEngine));
        }
예제 #2
0
        protected decimal LegacyShim(decimal gross, string taxCode, PayPeriods periods, int period, decimal gtd, decimal ttd, bool wk1, int year)
        {
            var payeEngine = payeFactory.CreatePayeCalculationEngine(year);

            return(payeEngine.CalculateTaxDueForPeriod(taxCode, gross, periods, period, wk1, gtd, ttd));
        }