public DormantAccountHousekeeping(IConfigurationService configurationService, ICommunicationService communicationService, IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository, ICandidateWriteRepository candidateWriteRepository, IAuditRepository auditRepository, ISetUserStatusPendingDeletionStrategy setUserStatusPendingDeletionStrategy, ILogService logService) { var sendAccountRemindersStrategy = new SendAccountRemindersStrategy(configurationService, userWriteRepository, candidateWriteRepository, auditRepository, communicationService, logService); var setPendingDeletionStrategy = new SetPendingDeletionStrategy(configurationService, userReadRepository, setUserStatusPendingDeletionStrategy); var terminatingHousekeepingStrategy = new TerminatingHousekeepingStrategy(configurationService); sendAccountRemindersStrategy.SetSuccessor(setPendingDeletionStrategy); setPendingDeletionStrategy.SetSuccessor(terminatingHousekeepingStrategy); _strategy = sendAccountRemindersStrategy; }
public ActivationReminderHousekeeping(IConfigurationService configurationService, ICommunicationService communicationService, IUserWriteRepository userWriteRepository, IAuditRepository auditRepository, ILogService logService, IServiceBus serviceBus) { var sendAccountRemindersStrategy = new SendAccountRemindersStrategy(configurationService, communicationService); var setPendingDeletionStrategy = new SetPendingDeletionStrategy(configurationService, userWriteRepository, auditRepository, logService, serviceBus); var terminatingHousekeepingStrategy = new TerminatingHousekeepingStrategy(configurationService); sendAccountRemindersStrategy.SetSuccessor(setPendingDeletionStrategy); setPendingDeletionStrategy.SetSuccessor(terminatingHousekeepingStrategy); _strategy = sendAccountRemindersStrategy; }