コード例 #1
0
ファイル: CalculatorEngine.cs プロジェクト: mehabadi/HPMS
 public CalculatorEngine(IPolicyRepository policyRep,
                         IPeriodRepository periodRep,
                         ICalculationRepository calcRep,
                         IJobIndexPointRepository jipRep,
                         IEmployeeRepository empRep, ICalculationDataProviderFactory calculationDataProviderFactory, ICalculationExceptionRepository calcExpRep)
 {
     this.policyRep = policyRep;
     this.periodRep = periodRep;
     this.empRep    = empRep;
     this.calcRep   = calcRep;
     this.jipRep    = jipRep;
     this.calculationDataProviderFactory = calculationDataProviderFactory;
     this.calcExpRep = calcExpRep;
 }
コード例 #2
0
 public CalculationServiceFacade(ICalculationService calculationService,
                                 IMapper <CalculationWithPolicyAndPeriod, CalculationDTO> calculationMapper,
                                 IMapper <CalculationWithPolicyAndPeriod, CalculationBriefDTOWithAction> calculationBriefMapper,
                                 IMapper <EmployeeCalculationException, CalculationExceptionBriefDTOWithAction> calculationExceptionBriefMapper,
                                 IMapper <EmployeeCalculationException, CalculationExceptionDTO> calculationExceptionMapper,
                                 IMapper <CalculationStateReport, CalculationStateWithRunSummaryDTO> calculationStateReportMapper,
                                 ICalculationRepository calculationRep, IPeriodRepository PeriodRep, IPolicyRepository PolicyRep,
                                 IEmployeeRepository employeeRep,
                                 ICalculationExceptionRepository calculationExpRepository,
                                 ICalculationEngineService calcEngineService)
 {
     this.calculationService              = calculationService;
     this.calculationMapper               = calculationMapper;
     this.calculationBriefMapper          = calculationBriefMapper;
     this.calculationExceptionBriefMapper = calculationExceptionBriefMapper;
     this.calculationExceptionMapper      = calculationExceptionMapper;
     this.calculationRep = calculationRep;
     this.calculationStateReportMapper = calculationStateReportMapper;
     this.PeriodRep   = PeriodRep;
     this.PolicyRep   = PolicyRep;
     this.employeeRep = employeeRep;
     this.calculationExpRepository = calculationExpRepository;
     this.calcEngineService        = calcEngineService;
 }