Пример #1
0
 public CandidateService(
     ICandidateReadRepository candidateReadRepository,
     IApprenticeshipApplicationReadRepository apprenticeshipApplicationReadRepository,
     IActivateCandidateStrategy activateCandidateStrategy,
     IAuthenticateCandidateStrategy authenticateCandidateStrategy,
     ISubmitApprenticeshipApplicationStrategy submitApprenticeshipApplicationStrategy,
     IRegisterCandidateStrategy registerCandidateStrategy,
     ICreateApprenticeshipApplicationStrategy createApplicationStrategy,
     ICreateTraineeshipApplicationStrategy createTraineeshipApplicationStrategy,
     IGetCandidateApprenticeshipApplicationsStrategy getCandidateApprenticeshipApplicationsStrategy,
     IResetForgottenPasswordStrategy resetForgottenPasswordStrategy,
     IUnlockAccountStrategy unlockAccountStrategy,
     ISaveApprenticeshipApplicationStrategy saveApplicationStrategy,
     IArchiveApplicationStrategy archiveApplicationStrategy,
     IDeleteApplicationStrategy deleteApplicationStrategy,
     ISaveCandidateStrategy saveCandidateStrategy,
     ISubmitTraineeshipApplicationStrategy submitTraineeshipApplicationStrategy,
     ISaveTraineeshipApplicationStrategy saveTraineeshipApplicationStrategy,
     ITraineeshipApplicationReadRepository traineeshipApplicationReadRepository,
     IGetCandidateTraineeshipApplicationsStrategy getCandidateTraineeshipApplicationsStrategy,
     ILegacyGetCandidateVacancyDetailStrategy <ApprenticeshipVacancyDetail> candidateApprenticeshipVacancyDetailStrategy,
     ILegacyGetCandidateVacancyDetailStrategy <TraineeshipVacancyDetail> candidateTraineeshipVacancyDetailStrategy,
     ISendMobileVerificationCodeStrategy sendMobileVerificationCodeStrategy,
     ILogService logService, IVerifyMobileStrategy verifyMobileStrategy,
     ISubmitContactMessageStrategy submitContactMessageStrategy)
 {
     _candidateReadRepository                        = candidateReadRepository;
     _activateCandidateStrategy                      = activateCandidateStrategy;
     _authenticateCandidateStrategy                  = authenticateCandidateStrategy;
     _submitApprenticeshipApplicationStrategy        = submitApprenticeshipApplicationStrategy;
     _registerCandidateStrategy                      = registerCandidateStrategy;
     _createApplicationStrategy                      = createApplicationStrategy;
     _createTraineeshipApplicationStrategy           = createTraineeshipApplicationStrategy;
     _getCandidateApprenticeshipApplicationsStrategy = getCandidateApprenticeshipApplicationsStrategy;
     _resetForgottenPasswordStrategy                 = resetForgottenPasswordStrategy;
     _unlockAccountStrategy = unlockAccountStrategy;
     _apprenticeshipApplicationReadRepository = apprenticeshipApplicationReadRepository;
     _saveApplicationStrategy                      = saveApplicationStrategy;
     _archiveApplicationStrategy                   = archiveApplicationStrategy;
     _deleteApplicationStrategy                    = deleteApplicationStrategy;
     _saveCandidateStrategy                        = saveCandidateStrategy;
     _submitTraineeshipApplicationStrategy         = submitTraineeshipApplicationStrategy;
     _saveTraineeshipApplicationStrategy           = saveTraineeshipApplicationStrategy;
     _traineeshipApplicationReadRepository         = traineeshipApplicationReadRepository;
     _getCandidateTraineeshipApplicationsStrategy  = getCandidateTraineeshipApplicationsStrategy;
     _candidateApprenticeshipVacancyDetailStrategy = candidateApprenticeshipVacancyDetailStrategy;
     _candidateTraineeshipVacancyDetailStrategy    = candidateTraineeshipVacancyDetailStrategy;
     _sendMobileVerificationCodeStrategy           = sendMobileVerificationCodeStrategy;
     _logger = logService;
     _verifyMobileStrategy         = verifyMobileStrategy;
     _submitContactMessageStrategy = submitContactMessageStrategy;
 }
 public CandidateService(
     IGetCandidateByIdStrategy getCandidateByIdStrategy,
     IApprenticeshipApplicationReadRepository apprenticeshipApplicationReadRepository,
     IActivateCandidateStrategy activateCandidateStrategy,
     IAuthenticateCandidateStrategy authenticateCandidateStrategy,
     ISubmitApprenticeshipApplicationStrategy submitApprenticeshipApplicationStrategy,
     IRegisterCandidateStrategy registerCandidateStrategy,
     ISaveApprenticeshipVacancyStrategy saveVacancyStrategy,
     IDeleteSavedApprenticeshipVacancyStrategy deleteSavedApprenticeshipVacancyStrategy,
     ICreateDraftApprenticeshipFromSavedVacancyStrategy createDraftApprenticeshipFromSavedVacancyStrategy,
     ICreateApprenticeshipApplicationStrategy createApplicationStrategy,
     ICreateTraineeshipApplicationStrategy createTraineeshipApplicationStrategy,
     IGetCandidateApprenticeshipApplicationsStrategy getCandidateApprenticeshipApplicationsStrategy,
     IResetForgottenPasswordStrategy resetForgottenPasswordStrategy,
     IUnlockAccountStrategy unlockAccountStrategy,
     ISaveApprenticeshipApplicationStrategy saveApplicationStrategy,
     IArchiveApplicationStrategy archiveApplicationStrategy,
     IDeleteApplicationStrategy deleteApplicationStrategy,
     ISaveCandidateStrategy saveCandidateStrategy,
     ISubmitTraineeshipApplicationStrategy submitTraineeshipApplicationStrategy,
     ISaveTraineeshipApplicationStrategy saveTraineeshipApplicationStrategy,
     ITraineeshipApplicationReadRepository traineeshipApplicationReadRepository,
     IGetCandidateTraineeshipApplicationsStrategy getCandidateTraineeshipApplicationsStrategy,
     IGetCandidateVacancyDetailStrategy <ApprenticeshipVacancyDetail> candidateApprenticeshipVacancyDetailStrategy,
     IGetCandidateVacancyDetailStrategy <TraineeshipVacancyDetail> candidateTraineeshipVacancyDetailStrategy,
     ISendMobileVerificationCodeStrategy sendMobileVerificationCodeStrategy,
     ILogService logService,
     IVerifyMobileStrategy verifyMobileStrategy,
     ISubmitContactMessageStrategy submitContactMessageStrategy,
     ICreateSavedSearchStrategy createSavedSearchStrategy,
     IRetrieveSavedSearchesStrategy retrieveSavedSearchesStrategy,
     IUpdateSavedSearchStrategy updateSavedSearchStrategy,
     IDeleteSavedSearchStrategy deleteSavedSearchStrategy,
     IUpdateUsernameStrategy updateUsernameStrategy,
     IRequestEmailReminderStrategy requestEmailReminderStrategy,
     IUnsubscribeStrategy unsubscribeStrategy,
     IApprenticeshipVacancySuggestionsStrategy apprenticeshipVacancySuggestionsStrategy,
     IGetCandidateByUsernameStrategy getCandidateByUsernameStrategy,
     ISetUserStatusPendingDeletionStrategy setCandidateDeletionPendingStrategy, IUserReadRepository userReadRepository)
 {
     _getCandidateByIdStrategy                = getCandidateByIdStrategy;
     _activateCandidateStrategy               = activateCandidateStrategy;
     _authenticateCandidateStrategy           = authenticateCandidateStrategy;
     _submitApprenticeshipApplicationStrategy = submitApprenticeshipApplicationStrategy;
     _registerCandidateStrategy               = registerCandidateStrategy;
     _saveVacancyStrategy = saveVacancyStrategy;
     _deleteSavedApprenticeshipVacancyStrategy          = deleteSavedApprenticeshipVacancyStrategy;
     _createDraftApprenticeshipFromSavedVacancyStrategy = createDraftApprenticeshipFromSavedVacancyStrategy;
     _createApplicationStrategy                      = createApplicationStrategy;
     _createTraineeshipApplicationStrategy           = createTraineeshipApplicationStrategy;
     _getCandidateApprenticeshipApplicationsStrategy = getCandidateApprenticeshipApplicationsStrategy;
     _resetForgottenPasswordStrategy                 = resetForgottenPasswordStrategy;
     _unlockAccountStrategy = unlockAccountStrategy;
     _apprenticeshipApplicationReadRepository = apprenticeshipApplicationReadRepository;
     _saveApplicationStrategy                      = saveApplicationStrategy;
     _archiveApplicationStrategy                   = archiveApplicationStrategy;
     _deleteApplicationStrategy                    = deleteApplicationStrategy;
     _saveCandidateStrategy                        = saveCandidateStrategy;
     _submitTraineeshipApplicationStrategy         = submitTraineeshipApplicationStrategy;
     _saveTraineeshipApplicationStrategy           = saveTraineeshipApplicationStrategy;
     _traineeshipApplicationReadRepository         = traineeshipApplicationReadRepository;
     _getCandidateTraineeshipApplicationsStrategy  = getCandidateTraineeshipApplicationsStrategy;
     _candidateApprenticeshipVacancyDetailStrategy = candidateApprenticeshipVacancyDetailStrategy;
     _candidateTraineeshipVacancyDetailStrategy    = candidateTraineeshipVacancyDetailStrategy;
     _sendMobileVerificationCodeStrategy           = sendMobileVerificationCodeStrategy;
     _logger = logService;
     _verifyMobileStrategy                     = verifyMobileStrategy;
     _submitContactMessageStrategy             = submitContactMessageStrategy;
     _createSavedSearchStrategy                = createSavedSearchStrategy;
     _retrieveSavedSearchesStrategy            = retrieveSavedSearchesStrategy;
     _updateSavedSearchStrategy                = updateSavedSearchStrategy;
     _deleteSavedSearchStrategy                = deleteSavedSearchStrategy;
     _updateUsernameStrategy                   = updateUsernameStrategy;
     _requestEmailReminderStrategy             = requestEmailReminderStrategy;
     _unsubscribeStrategy                      = unsubscribeStrategy;
     _apprenticeshipVacancySuggestionsStrategy = apprenticeshipVacancySuggestionsStrategy;
     _getCandidateByUsernameStrategy           = getCandidateByUsernameStrategy;
     _setCandidateDeletionPendingStrategy      = setCandidateDeletionPendingStrategy;
     _userReadRepository = userReadRepository;
 }