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; }
public CalculationController(ApplicationDataContext context, IServiceScopeFactory serviceScopeFactory, IUserRepository userRrepository, ICalculationRepository calculationRrepository) { _serviceScopeFactory = serviceScopeFactory; _context = context; _userRrepository = userRrepository; _calculationRrepository = calculationRrepository; }
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; }
public CalculationService(IRepository <CalculationHistory> calculationRepository, IUserService userService, IRepository <User> userRepository, ICalculationRepository calculationRepository1) { _repository = calculationRepository; _userService = userService; _userRepository = userRepository; _calculationRepository = calculationRepository1; }
public Controller() { _CalculationFormatter = new SimpleCalculationFormatter(); _CalculationGenerator = new SimpleCalculationGenerator(); _CalculationRepository = new CalculationRepository(); _InputService = new SimpleInputService(); }
public CheckNumberIsPrimeCommandHandler( ILoggingManager loggingManager, ICalculationRepository calculationRepository, ConnectionStrings connectionStrings) : base(connectionStrings) { _loggingManager = loggingManager; _calculationRepository = calculationRepository; }
public ExcelClientCalculation( ICalculationRepository calculations, IClientBalanceRepository balance, IClientRepository clients) { _balance = balance; _calculations = calculations; _clients = clients; }
public CalculationServiceWithEvent( ICalculationService service, IEventFacade events, ICalculationRepository calculations) { _service = service; _events = events; _calculations = calculations; }
public CalculationsController( ILogger <CalculationsController> logger, ICalculationRepository calculationRepository, ICalculator calculator, IMapper mapper, CalculatorDbContext dbContext) { _logger = logger; _calculationRepository = calculationRepository; _calculator = calculator; _mapper = mapper; _dbContext = dbContext; }
public CalculationServiceWithBalace( ICalculationService service, ICalculationRepository calculations, IClientBalance balance) { _service = service; _calculations = calculations; _balance = balance; }
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); }
public CalculationService(ICalculationRepository calculationRep, IPeriodRepository periodRep, IPolicyRepository PolicyRep, IJobIndexPointCalculatorProvider calculatorProvider) { this.calculationRep = calculationRep; this.periodRep = periodRep; this.PolicyRep = PolicyRep; this.calculatorProvider = calculatorProvider; }
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; }
public JobIndexPointFacadeService(IJobIndexPointRepository repository, ICalculationRepository calculationRep, IMapper <JobIndexPointWithEmployee, JobIndexPointSummaryDTOWithAction> jobIndexPointMapper, IEmployeeRepository employeeRep ) { this.repository = repository; this.calculationRep = calculationRep; this.jobIndexPointMapper = jobIndexPointMapper; this.employeeRep = employeeRep; }
public BillModelFactory( IApplicationRepository applications, ICalculationRepository calculations, IClientRepository clients, ISettingRepository settings) { _applications = applications; _calculations = calculations; _clients = clients; _settings = settings; }
public CalculationService( ICalculationRepository calculations, ISenderRepository senders, IAwbRepository awbs, IApplicationRepository applications) { _calculations = calculations; _senders = senders; _awbs = awbs; _applications = applications; }
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; }
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; }
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); }
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); } } }
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; }
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; }
public СalculationService(ICalculationRepository calculationRepository, IUnitOfWork unitOfWork) { this._calculationRepository = calculationRepository; _unitOfWork = unitOfWork; }
public CalculationService(ICalculationRepository calculationRepository) { this.calculationRepository = calculationRepository; }
public CalculationsController(ICalculationRepository calcRepo) { _calcRepo = calcRepo; }
internal override void ChangeDeterministicStatus(Calculation calculation, bool isDeterministic, ICalculationRepository calcRep) { if (isDeterministic) { CalculationDeterministicManagerService.SetDeterministic(calcRep, calculation); } else { calculation.UnsetDeterministic(); } }
public CalculationLogic(ICalculationRepository repository) { _calculationRepository = repository; }
public CalculationController(ICalculationRepository repository, ICalculator calculator, IResponseSender responseSender) { _repository = repository; _calculator = calculator; _responseSender = responseSender; }
internal virtual void ChangeDeterministicStatus(Calculation calculation, bool isDeterministic, ICalculationRepository calcRep) { throw new ClaimInvalidStateOperationException("Calculation", DisplayName, "ChangeDeterministicStatus"); }