コード例 #1
0
 public PeriodServiceFacade(IPeriodService periodService,
                            IMapper <Period, PeriodDescriptionDTO> periodDescriptionMapper,
                            IMapper <Period, PeriodDTOWithAction> periodDTOWithActionsMapper,
                            IMapper <Period, PeriodDTO> periodDTOMapper,
                            IMapper <InquiryInitializingProgress, PeriodStateWithIntializeInquirySummaryDTO>
                            periodInitializeInquiryStateReportMapper,
                            IMapper <BasicDataCopyingProgress, PeriodStateWithCopyingSummaryDTO> periodCopyingStateReportMapper,
                            IPeriodRepository periodRep, IPeriodEngineService periodEngine, IEmployeeRepository employeeRepository,
                            IJobPositionRepository jobPositionRepository, IUnitRepository unitRepository,
                            IJobIndexPointRepository jobIndexPointRepository, ICalculationRepository calculationRepository, IJobIndexRepository jobIndexRepository)
 {
     this.periodService              = periodService;
     this.periodDescriptionMapper    = periodDescriptionMapper;
     this.periodDTOWithActionsMapper = periodDTOWithActionsMapper;
     this.periodDTOMapper            = periodDTOMapper;
     this.periodInitializeInquiryStateReportMapper = periodInitializeInquiryStateReportMapper;
     this.periodCopyingStateReportMapper           = periodCopyingStateReportMapper;
     this.periodRep               = periodRep;
     this.periodEngine            = periodEngine;
     this.employeeRepository      = employeeRepository;
     this.jobPositionRepository   = jobPositionRepository;
     this.unitRepository          = unitRepository;
     this.jobIndexPointRepository = jobIndexPointRepository;
     this.calculationRepository   = calculationRepository;
     this.jobIndexRepository      = jobIndexRepository;
 }
 public GetCalculationStatesByNumberQueryHandler(
     IMapper mapper,
     ICalculationRepository calculationRepository)
 {
     _mapper = mapper;
     _calculationRepository = calculationRepository;
 }
コード例 #3
0
 public CalculationController(ApplicationDataContext context, IServiceScopeFactory serviceScopeFactory, IUserRepository userRrepository, ICalculationRepository calculationRrepository)
 {
     _serviceScopeFactory    = serviceScopeFactory;
     _context                = context;
     _userRrepository        = userRrepository;
     _calculationRrepository = calculationRrepository;
 }
コード例 #4
0
 public PeriodManagerService(
     IPeriodRepository periodRep,
     IEmployeeRepository employeeRepository,
     ICalculationRepository calcRep,
     IJobPositionRepository jobPositionRep,
     IJobIndexPointRepository jobIndexPointRep,
     IInquiryJobIndexPointRepository inquiryJobIndexPointRep,
     IInquiryUnitIndexPointRepository inquiryUnitIndexPointRep,
     IClaimRepository claimRep,
     IEventPublisher publisher,
     IInquiryConfiguratorService inquiryConfiguratorService,
     IPeriodBasicDataCopierService periodCopierService
     ,
     IEmployeePointManagerService employeePointManagerService
     )
 {
     this.periodRep                  = periodRep;
     this.employeeRepository         = employeeRepository;
     this.inquiryConfiguratorService = inquiryConfiguratorService;
     this.periodCopierService        = periodCopierService;
     this.publisher                  = publisher;
     this.calcRep                     = calcRep;
     this.jobIndexPointRep            = jobIndexPointRep;
     this.jobPositionRep              = jobPositionRep;
     this.inquiryJobIndexPointRep     = inquiryJobIndexPointRep;
     this.claimRep                    = claimRep;
     this.inquiryUnitIndexPointRep    = inquiryUnitIndexPointRep;
     this.employeePointManagerService = employeePointManagerService;
 }
コード例 #5
0
 public CalculationService(IRepository <CalculationHistory> calculationRepository, IUserService userService, IRepository <User> userRepository, ICalculationRepository calculationRepository1)
 {
     _repository            = calculationRepository;
     _userService           = userService;
     _userRepository        = userRepository;
     _calculationRepository = calculationRepository1;
 }
コード例 #6
0
 public Controller()
 {
     _CalculationFormatter  = new SimpleCalculationFormatter();
     _CalculationGenerator  = new SimpleCalculationGenerator();
     _CalculationRepository = new CalculationRepository();
     _InputService          = new SimpleInputService();
 }
コード例 #7
0
 public CheckNumberIsPrimeCommandHandler(
     ILoggingManager loggingManager,
     ICalculationRepository calculationRepository,
     ConnectionStrings connectionStrings) : base(connectionStrings)
 {
     _loggingManager        = loggingManager;
     _calculationRepository = calculationRepository;
 }
コード例 #8
0
 public ExcelClientCalculation(
     ICalculationRepository calculations,
     IClientBalanceRepository balance,
     IClientRepository clients)
 {
     _balance      = balance;
     _calculations = calculations;
     _clients      = clients;
 }
コード例 #9
0
 public CalculationServiceWithEvent(
     ICalculationService service,
     IEventFacade events,
     ICalculationRepository calculations)
 {
     _service      = service;
     _events       = events;
     _calculations = calculations;
 }
コード例 #10
0
 public CalculationsController(
     ILogger <CalculationsController> logger, ICalculationRepository calculationRepository, ICalculator calculator, IMapper mapper, CalculatorDbContext dbContext)
 {
     _logger = logger;
     _calculationRepository = calculationRepository;
     _calculator            = calculator;
     _mapper    = mapper;
     _dbContext = dbContext;
 }
コード例 #11
0
		public ExcelClientCalculation(
			ICalculationRepository calculations,
			IClientBalanceRepository balance,
			IClientRepository clients)
		{
			_balance = balance;
			_calculations = calculations;
			_clients = clients;
		}
コード例 #12
0
 public CalculationServiceWithBalace(
     ICalculationService service,
     ICalculationRepository calculations,
     IClientBalance balance)
 {
     _service      = service;
     _calculations = calculations;
     _balance      = balance;
 }
コード例 #13
0
		public CalculationServiceWithBalace(
			ICalculationService service,
			ICalculationRepository calculations,
			IClientBalance balance)
		{
			_service = service;
			_calculations = calculations;
			_balance = balance;
		}
コード例 #14
0
		public CalculationServiceWithEvent(
			ICalculationService service,
			IEventFacade events,
			ICalculationRepository calculations)
		{
			_service = service;
			_events = events;
			_calculations = calculations;
		}
コード例 #15
0
        public static Calculation GetDeterministicCalculation(Period period, ICalculationRepository calculationRep)
        {
            var calc = calculationRep.GetDeterministicCalculation(period);

            if (calc == null)
            {
                throw new  CalculationException((int)ApiExceptionCode.DoesNotExistAnyDeterministicCalculationInPeriod, ApiExceptionCode.DoesNotExistAnyDeterministicCalculationInPeriod.DisplayName);
            }
            return(calc);
        }
コード例 #16
0
ファイル: CalculationService.cs プロジェクト: mehabadi/HPMS
 public CalculationService(ICalculationRepository calculationRep,
                           IPeriodRepository periodRep,
                           IPolicyRepository PolicyRep,
                           IJobIndexPointCalculatorProvider calculatorProvider)
 {
     this.calculationRep     = calculationRep;
     this.periodRep          = periodRep;
     this.PolicyRep          = PolicyRep;
     this.calculatorProvider = calculatorProvider;
 }
コード例 #17
0
ファイル: EmployeeService.cs プロジェクト: mehabadi/HPMS
 public EmployeeService(IEmployeeRepository employeeRep, IPeriodRepository periodRep, IPMSAdminService converter,
                        IJobPositionRepository jobPositionRep, IPeriodManagerService periodChecker, IJobIndexPointRepository jobIndexPointRepository, ICalculationRepository calculationRepository)
 {
     this.employeeRep             = employeeRep;
     this.periodRep               = periodRep;
     this.converter               = converter;
     this.jobPositionRep          = jobPositionRep;
     this.periodChecker           = periodChecker;
     this.jobIndexPointRepository = jobIndexPointRepository;
     this.calculationRepository   = calculationRepository;
 }
コード例 #18
0
 public JobIndexPointFacadeService(IJobIndexPointRepository repository,
                                   ICalculationRepository calculationRep, IMapper <JobIndexPointWithEmployee,
                                                                                   JobIndexPointSummaryDTOWithAction> jobIndexPointMapper,
                                   IEmployeeRepository employeeRep
                                   )
 {
     this.repository          = repository;
     this.calculationRep      = calculationRep;
     this.jobIndexPointMapper = jobIndexPointMapper;
     this.employeeRep         = employeeRep;
 }
コード例 #19
0
ファイル: BillModelFactory.cs プロジェクト: SKDon/Tracker
 public BillModelFactory(
     IApplicationRepository applications,
     ICalculationRepository calculations,
     IClientRepository clients,
     ISettingRepository settings)
 {
     _applications = applications;
     _calculations = calculations;
     _clients      = clients;
     _settings     = settings;
 }
コード例 #20
0
ファイル: BillModelFactory.cs プロジェクト: UHgEHEP/test
		public BillModelFactory(
			IApplicationRepository applications,
			ICalculationRepository calculations,
			IClientRepository clients,
			ISettingRepository settings)
		{
			_applications = applications;
			_calculations = calculations;
			_clients = clients;
			_settings = settings;
		}
コード例 #21
0
 public CalculationService(
     ICalculationRepository calculations,
     ISenderRepository senders,
     IAwbRepository awbs,
     IApplicationRepository applications)
 {
     _calculations = calculations;
     _senders      = senders;
     _awbs         = awbs;
     _applications = applications;
 }
コード例 #22
0
ファイル: CalculationService.cs プロジェクト: UHgEHEP/test
		public CalculationService(
			ICalculationRepository calculations,
			ISenderRepository senders,
			IAwbRepository awbs,
			IApplicationRepository applications)
		{
			_calculations = calculations;
			_senders = senders;
			_awbs = awbs;
			_applications = applications;
		}
コード例 #23
0
 public DocumentsController(IDocumentService documentService, ICalculationService calculationService, IUserService userService, IDocumentTypeRepository documentTypeRepository, IDocumentRepository documentRepository, IUserRepository userRepository, ICheckedRepository checkRepository, IDocumentLogRepository documentLogRepository, ICalculationRepository calculationRepository)
 {
     _documentService        = documentService;
     _calculationService     = calculationService;
     _userService            = userService;
     _documentTypeRepository = documentTypeRepository;
     _documentRepository     = documentRepository;
     _userRepository         = userRepository;
     _checkRepository        = checkRepository;
     _docLogRepository       = documentLogRepository;
     _calcRepository         = calculationRepository;
 }
コード例 #24
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;
 }
コード例 #25
0
        public void SetupTest()
        {
            _logger = Substitute.For <ILogger>();
            _calculationRepository   = Substitute.For <ICalculationRepository>();
            _specificationRepository = Substitute.For <ISpecificationRepository>();
            _datasetRepository       = Substitute.For <IDatasetRepository>();
            _fundingLineRepository   = Substitute.For <IFundingLineRepository>();

            _graphService = new GraphService(_logger,
                                             _calculationRepository,
                                             _specificationRepository,
                                             _datasetRepository,
                                             _fundingLineRepository);
        }
コード例 #26
0
 public static void SetDeterministic(ICalculationRepository calculationRep, Calculation calculation)
 {
     lock (lockObject)
     {
         bool hasDeterministic = calculationRep.GetAll(calculation.PeriodId).Any(p => p.Id != calculation.Id && p.IsDeterministic);
         if (!hasDeterministic)
         {
             calculation.SetDeterministic();
         }
         else
         {
             throw new PeriodException((int)ApiExceptionCode.ExceedViolationInDeterministicCalculationInPeriod, ApiExceptionCode.ExceedViolationInDeterministicCalculationInPeriod.DisplayName);
         }
     }
 }
コード例 #27
0
        public GraphService(ILogger logger,
                            ICalculationRepository calcRepository,
                            ISpecificationRepository specRepository,
                            IDatasetRepository datasetRepository,
                            IFundingLineRepository fundingLineRepository)
        {
            Guard.ArgumentNotNull(logger, nameof(logger));
            Guard.ArgumentNotNull(calcRepository, nameof(calcRepository));
            Guard.ArgumentNotNull(specRepository, nameof(specRepository));
            Guard.ArgumentNotNull(datasetRepository, nameof(datasetRepository));
            Guard.ArgumentNotNull(fundingLineRepository, nameof(fundingLineRepository));

            _logger                = logger;
            _calcRepository        = calcRepository;
            _specRepository        = specRepository;
            _datasetRepository     = datasetRepository;
            _fundingLineRepository = fundingLineRepository;
        }
コード例 #28
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;
 }
コード例 #29
0
 public СalculationService(ICalculationRepository calculationRepository, IUnitOfWork unitOfWork)
 {
     this._calculationRepository = calculationRepository;
     _unitOfWork = unitOfWork;
 }
コード例 #30
0
 public CalculationService(ICalculationRepository calculationRepository)
 {
     this.calculationRepository = calculationRepository;
 }
コード例 #31
0
 public CalculationsController(ICalculationRepository calcRepo)
 {
     _calcRepo = calcRepo;
 }
コード例 #32
0
 internal override void ChangeDeterministicStatus(Calculation calculation, bool isDeterministic, ICalculationRepository calcRep)
 {
     if (isDeterministic)
     {
         CalculationDeterministicManagerService.SetDeterministic(calcRep, calculation);
     }
     else
     {
         calculation.UnsetDeterministic();
     }
 }
コード例 #33
0
 public CalculationLogic(ICalculationRepository repository)
 {
     _calculationRepository = repository;
 }
コード例 #34
0
 public CalculationController(ICalculationRepository repository, ICalculator calculator, IResponseSender responseSender)
 {
     _repository     = repository;
     _calculator     = calculator;
     _responseSender = responseSender;
 }
コード例 #35
0
ファイル: CalculationState.cs プロジェクト: mehabadi/HPMS
 internal virtual void ChangeDeterministicStatus(Calculation calculation, bool isDeterministic, ICalculationRepository calcRep)
 {
     throw new ClaimInvalidStateOperationException("Calculation", DisplayName, "ChangeDeterministicStatus");
 }