public MobileVerificationCodeReminderHousekeeping(ILogService logService, IConfigurationService configurationService, ICommunicationService communicationService)
        {
            var sendMobileVerificationCodeReminder = new SendMobileVerificationCodeReminderStrategy(logService, configurationService, communicationService);
            var terminatingHousekeepingStrategy    = new TerminatingHousekeepingStrategy(configurationService);

            sendMobileVerificationCodeReminder.SetSuccessor(terminatingHousekeepingStrategy);

            _strategy = sendMobileVerificationCodeReminder;
        }
Beispiel #2
0
        public HardDeleteHousekeeping(IConfigurationService configurationService,
                                      IUserWriteRepository userWriteRepository, IAuthenticationRepository authenticationRepository, ICandidateWriteRepository candidateWriteRepository,
                                      ISavedSearchReadRepository savedSearchReadRepository,
                                      ISavedSearchWriteRepository savedSearchWriteRepository,
                                      IApprenticeshipApplicationReadRepository apprenticeshipApplicationReadRepository,
                                      IApprenticeshipApplicationWriteRepository apprenticeshipApplicationWriteRepository,
                                      ITraineeshipApplicationReadRepository traineeshipApplicationReadRepository,
                                      ITraineeshipApplicationWriteRepository traineeshipApplicationWriteRepository,
                                      IAuditRepository auditRepository, ILogService logService, IServiceBus serviceBus)
        {
            var hardDeleteStrategy = new HardDeleteStrategy(configurationService, userWriteRepository, authenticationRepository,
                                                            candidateWriteRepository, savedSearchReadRepository, savedSearchWriteRepository, apprenticeshipApplicationReadRepository,
                                                            apprenticeshipApplicationWriteRepository, traineeshipApplicationReadRepository,
                                                            traineeshipApplicationWriteRepository, auditRepository, logService, serviceBus);
            var terminatingHousekeepingStrategy = new TerminatingHousekeepingStrategy(configurationService);

            hardDeleteStrategy.SetSuccessor(terminatingHousekeepingStrategy);

            _strategy = hardDeleteStrategy;
        }