Example #1
0
        public TimeRegService(IExternalSystemFactory externalSystemFactory,
                              IExternalSystemValidatorFactory validatorFactory,
                              ICurrentUserContext currentUserContext,
                              IIntegrationService integrationService)
        {
            _externalSystemFactory = externalSystemFactory;
            _validatorFactory      = validatorFactory;
            _currentUserContext    = currentUserContext;
            _integrationService    = integrationService;
            _integrationValidator  = new TimeregIntegrationValidator();

            Logger = NullLogger <TimeRegService> .Instance;
        }
        public AbsenceService(IExternalSystemFactory externalSystemFactory,
                              IIntegrationService integrationService,
                              IAbsenceExportService absenceExportService,
                              IExternalSystemValidatorFactory externalSystemValidatorFactory,
                              IUnitService unitService)
        {
            _externalSystemFactory          = externalSystemFactory;
            _integrationService             = integrationService;
            _absenceExportService           = absenceExportService;
            _externalSystemValidatorFactory = externalSystemValidatorFactory;
            _unitService = unitService;
            Logger       = NullLogger <AbsenceService> .Instance;

            _integrationValidator = new TimeregIntegrationValidator();
        }