コード例 #1
0
 public UnlockAccountStrategy(
     IUserReadRepository userReadRepository,
     IUserWriteRepository userWriteRepository,
     ISendAccountUnlockCodeStrategy sendAccountUnlockCodeStrategy)
 {
     _userReadRepository            = userReadRepository;
     _userWriteRepository           = userWriteRepository;
     _sendAccountUnlockCodeStrategy = sendAccountUnlockCodeStrategy;
 }
コード例 #2
0
 public UsersController(
     IMapper mapper,
     IMediator mediator,
     IUserReadRepository userReadRepository)
 {
     this.mapper             = mapper;
     this.mediator           = mediator;
     this.userReadRepository = userReadRepository;
 }
コード例 #3
0
        public CandidateDiagnosticsRepository(IConfigurationService configurationService, IMapper mapper, IUserReadRepository userReadRepository, ILogService logger)
        {
            var config = configurationService.Get <MongoConfiguration>();

            Initialise(config.CandidatesDb, "candidates");
            _mapper             = mapper;
            _userReadRepository = userReadRepository;
            _logger             = logger;
        }
コード例 #4
0
 public CandidateDailyDigestCommunicationCommand(
     ILogService logService,
     IConfigurationService configurationService,
     IServiceBus serviceBus,
     ICandidateReadRepository candidateReadRepository,
     IUserReadRepository userReadRepository)
     : base(logService, configurationService, serviceBus, candidateReadRepository, userReadRepository)
 {
 }
 public QueueUsernameUpdateCommunicationStrategy(
     IUserReadRepository userReadRepository,
     ICandidateReadRepository candidateReadRepository,
     IServiceBus serviceBus)
 {
     _userReadRepository      = userReadRepository;
     _candidateReadRepository = candidateReadRepository;
     _serviceBus = serviceBus;
 }
コード例 #6
0
 public UserCommandHandler(
     IMediator mediator,
     IUserReadRepository userReadRepository,
     IUserWriteRepository userWriteRepository)
 {
     this.mediator            = mediator;
     this.userReadRepository  = userReadRepository;
     this.userWriteRepository = userWriteRepository;
 }
コード例 #7
0
 public LegacyActivateCandidateStrategy(IUserReadRepository userReadRepository,
                                        IUserAccountService registrationService, ILegacyCandidateProvider legacyCandidateProvider,
                                        ICandidateWriteRepository candidateWriteRepository, ICandidateReadRepository candidateReadRepository)
 {
     _userReadRepository       = userReadRepository;
     _registrationService      = registrationService;
     _legacyCandidateProvider  = legacyCandidateProvider;
     _candidateWriteRepository = candidateWriteRepository;
     _candidateReadRepository  = candidateReadRepository;
 }
コード例 #8
0
        public UserWriteService(
            IUserWriteRepository userWriteRepository,
            IUserReadRepository userReadRepository,
            IRoleReadRepository roleReadRepository)
        {
            this.userWriteRepository = userWriteRepository;
            this.userReadRepository  = userReadRepository;

            this.roleReadRepository = roleReadRepository;
        }
コード例 #9
0
 public ResendActivationCodeStrategy(IConfigurationService configurationService, ICommunicationService communicationService,
                                     ICandidateReadRepository candidateReadRepository, ICodeGenerator codeGenerator,
                                     IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository)
 {
     _communicationService     = communicationService;
     _candidateReadRepository  = candidateReadRepository;
     _codeGenerator            = codeGenerator;
     _userReadRepository       = userReadRepository;
     _userWriteRepository      = userWriteRepository;
     _activationCodeExpiryDays = configurationService.Get <UserAccountConfiguration>().ActivationCodeExpiryDays;
 }
コード例 #10
0
 public ResendActivationCodeStrategy(IConfigurationManager configurationManager, ICommunicationService communicationService,
                                     ICandidateReadRepository candidateReadRepository, ICodeGenerator codeGenerator,
                                     IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository)
 {
     _communicationService     = communicationService;
     _candidateReadRepository  = candidateReadRepository;
     _codeGenerator            = codeGenerator;
     _userReadRepository       = userReadRepository;
     _userWriteRepository      = userWriteRepository;
     _activationCodeExpiryDays = configurationManager.GetAppSetting <int>("ActivationCodeExpiryDays");
 }
コード例 #11
0
 public SendSavedSearchAlertsStrategy(
     ISavedSearchAlertRepository savedSearchAlertRepository,
     ICandidateReadRepository candidateReadRepository,
     IUserReadRepository userReadRepository,
     IServiceBus serviceBus)
 {
     _savedSearchAlertRepository = savedSearchAlertRepository;
     _candidateReadRepository    = candidateReadRepository;
     _userReadRepository         = userReadRepository;
     _serviceBus = serviceBus;
 }
 public CandidateAccountHousekeepingSubscriber(
     ILogService logService,
     IUserReadRepository userReadRepository,
     ICandidateReadRepository candidateReadRepository,
     IEnumerable <IHousekeepingChainOfResponsibility> housekeepingChains)
 {
     _logService              = logService;
     _userReadRepository      = userReadRepository;
     _candidateReadRepository = candidateReadRepository;
     _housekeepingChains      = housekeepingChains.OrderBy(hc => hc.Order).ToList();
 }
コード例 #13
0
 public LegacyUnlockAccountStrategy(IUnlockAccountStrategy unlockAccountStrategy,
                                    ICandidateReadRepository candidateReadRepository,
                                    ICandidateWriteRepository candidateWriteRepository,
                                    ILegacyCandidateProvider legacyCandidateProvider,
                                    IUserReadRepository userReadRepository)
 {
     _unlockAccountStrategy    = unlockAccountStrategy;
     _candidateReadRepository  = candidateReadRepository;
     _candidateWriteRepository = candidateWriteRepository;
     _legacyCandidateProvider  = legacyCandidateProvider;
     _userReadRepository       = userReadRepository;
 }
コード例 #14
0
 public LegacyResetForgottenPasswordStrategy(IResetForgottenPasswordStrategy resetForgottenPasswordStrategy,
                                             ICandidateReadRepository candidateReadRepository,
                                             ICandidateWriteRepository candidateWriteRepository,
                                             ILegacyCandidateProvider legacyCandidateProvider,
                                             IUserReadRepository userReadRepository)
 {
     _resetForgottenPasswordStrategy = resetForgottenPasswordStrategy;
     _candidateReadRepository        = candidateReadRepository;
     _candidateWriteRepository       = candidateWriteRepository;
     _legacyCandidateProvider        = legacyCandidateProvider;
     _userReadRepository             = userReadRepository;
 }
コード例 #15
0
 public SendPasswordResetCodeStrategy(IConfigurationManager configurationManager,
                                      ICommunicationService communicationService, ICodeGenerator codeGenerator,
                                      IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository,
                                      ICandidateReadRepository candidateReadRepository, ILogService logger)
 {
     _communicationService    = communicationService;
     _codeGenerator           = codeGenerator;
     _userReadRepository      = userReadRepository;
     _userWriteRepository     = userWriteRepository;
     _candidateReadRepository = candidateReadRepository;
     _logger = logger;
     _passwordResetCodeExpiryDays = configurationManager.GetAppSetting <int>("PasswordResetCodeExpiryDays");
 }
コード例 #16
0
            public ChangePasswordCommandHandler(ICustomerWriteRepository customerWriteRepository,
                                                ICustomerReadRepository customerReadRepository,
                                                IUserWriteRepository userWriteRepository,
                                                IUserReadRepository userReadRepository,
                                                IMapper mapper)
            {
                _customerWriteRepository = customerWriteRepository;
                _customerReadRepository  = customerReadRepository;
                _userWriteRepository     = userWriteRepository;
                _userReadRepository      = userReadRepository;

                _mapper = mapper;
            }
コード例 #17
0
 public SendAccountUnlockCodeStrategy(
     IConfigurationManager configurationManager,
     IUserReadRepository userReadRepository,
     ICandidateReadRepository candidateReadRepository,
     ILockUserStrategy lockUserStrategy,
     ICommunicationService communicationService)
 {
     _configurationManager    = configurationManager;
     _candidateReadRepository = candidateReadRepository;
     _userReadRepository      = userReadRepository;
     _lockUserStrategy        = lockUserStrategy;
     _communicationService    = communicationService;
 }
コード例 #18
0
 public CandidateProcessor(
     ILogService logService,
     IConfigurationService configurationService,
     IServiceBus serviceBus,
     IUserReadRepository userReadRepository,
     ICandidateReadRepository candidateReadRepository)
 {
     _logService              = logService;
     _configurationService    = configurationService;
     _serviceBus              = serviceBus;
     _userReadRepository      = userReadRepository;
     _candidateReadRepository = candidateReadRepository;
 }
コード例 #19
0
 public SendPendingUsernameCodeStrategy(
     ILogService logger,
     ICommunicationService communicationService,
     ICodeGenerator codeGenerator,
     IUserReadRepository userReadRepository,
     ICandidateReadRepository candidateReadRepository)
 {
     _logger = logger;
     _communicationService    = communicationService;
     _codeGenerator           = codeGenerator;
     _userReadRepository      = userReadRepository;
     _candidateReadRepository = candidateReadRepository;
 }
コード例 #20
0
 public UpdateUsernameStrategy(IUserAccountService userAccountService,
                               ICandidateReadRepository candidateReadRepository,
                               ICandidateWriteRepository candidateWriteRepository,
                               ISaveCandidateStrategy saveCandidateStrategy,
                               IUserReadRepository userReadRepository, IServiceBus serviceBus)
 {
     _userAccountService       = userAccountService;
     _candidateReadRepository  = candidateReadRepository;
     _candidateWriteRepository = candidateWriteRepository;
     _saveCandidateStrategy    = saveCandidateStrategy;
     _userReadRepository       = userReadRepository;
     _serviceBus = serviceBus;
 }
コード例 #21
0
 public CandidateCommunicationCommand(
     ILogService logService,
     IConfigurationService configurationService,
     IServiceBus serviceBus,
     ICandidateReadRepository candidateReadRepository,
     IUserReadRepository userReadRepository)
     : base(serviceBus)
 {
     _logService              = logService;
     _configurationService    = configurationService;
     _candidateReadRepository = candidateReadRepository;
     _userReadRepository      = userReadRepository;
 }
コード例 #22
0
 public SendPasswordResetCodeStrategy(IConfigurationService configurationService,
                                      ICommunicationService communicationService, ICodeGenerator codeGenerator,
                                      IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository,
                                      ICandidateReadRepository candidateReadRepository, ILogService logger)
 {
     _communicationService    = communicationService;
     _codeGenerator           = codeGenerator;
     _userReadRepository      = userReadRepository;
     _userWriteRepository     = userWriteRepository;
     _candidateReadRepository = candidateReadRepository;
     _logger = logger;
     _passwordResetCodeExpiryDays = configurationService.Get <UserAccountConfiguration>().PasswordResetCodeExpiryDays;
 }
コード例 #23
0
 public SendAccountUnlockCodeStrategy(
     IConfigurationService configurationService,
     IUserReadRepository userReadRepository,
     ICandidateReadRepository candidateReadRepository,
     ILockUserStrategy lockUserStrategy,
     ICommunicationService communicationService)
 {
     _unlockCodeExpiryDays    = configurationService.Get <UserAccountConfiguration>().UnlockCodeExpiryDays;
     _candidateReadRepository = candidateReadRepository;
     _userReadRepository      = userReadRepository;
     _lockUserStrategy        = lockUserStrategy;
     _communicationService    = communicationService;
 }
コード例 #24
0
 public CreateCandidateRequestConsumerAsync(
     ICandidateReadRepository candidateReadRepository,
     IUserReadRepository userReadRepository,
     ILegacyCandidateProvider legacyCandidateProvider,
     ICandidateWriteRepository candidateWriteRepository,
     IMessageBus messageBus, ILogService logger)
 {
     _candidateReadRepository  = candidateReadRepository;
     _userReadRepository       = userReadRepository;
     _legacyCandidateProvider  = legacyCandidateProvider;
     _candidateWriteRepository = candidateWriteRepository;
     _messageBus = messageBus;
     _logger     = logger;
 }
コード例 #25
0
 public AuthenticateCandidateStrategy(
     IConfigurationManager configManager,
     IAuthenticationService authenticationService,
     IUserReadRepository userReadRepository,
     IUserWriteRepository userWriteRepository,
     ICandidateReadRepository candidateReadRepository,
     ILockAccountStrategy lockAccountStrategy)
 {
     _userWriteRepository            = userWriteRepository;
     _authenticationService          = authenticationService;
     _userReadRepository             = userReadRepository;
     _candidateReadRepository        = candidateReadRepository;
     _lockAccountStrategy            = lockAccountStrategy;
     _maximumPasswordAttemptsAllowed = configManager.GetAppSetting <int>("MaximumPasswordAttemptsAllowed");
 }
コード例 #26
0
 public SendDailyDigestsStrategy(
     ILogService logService,
     IServiceBus serviceBus,
     IExpiringApprenticeshipApplicationDraftRepository expiringDraftRepository,
     IApplicationStatusAlertRepository applicationStatusAlertRepository,
     ICandidateReadRepository candidateReadRepository,
     IUserReadRepository userReadRepository)
 {
     _logService = logService;
     _serviceBus = serviceBus;
     _expiringDraftRepository          = expiringDraftRepository;
     _applicationStatusAlertRepository = applicationStatusAlertRepository;
     _candidateReadRepository          = candidateReadRepository;
     _userReadRepository = userReadRepository;
 }
コード例 #27
0
 public AuthenticateCandidateStrategy(
     IConfigurationService configService,
     IAuthenticationService authenticationService,
     IUserReadRepository userReadRepository,
     IUserWriteRepository userWriteRepository,
     ICandidateReadRepository candidateReadRepository,
     ILockAccountStrategy lockAccountStrategy, IServiceBus serviceBus)
 {
     _userWriteRepository     = userWriteRepository;
     _authenticationService   = authenticationService;
     _userReadRepository      = userReadRepository;
     _candidateReadRepository = candidateReadRepository;
     _lockAccountStrategy     = lockAccountStrategy;
     _serviceBus = serviceBus;
     _maximumPasswordAttemptsAllowed = configService.Get <UserAccountConfiguration>().MaximumPasswordAttemptsAllowed;
 }
コード例 #28
0
 public RegisterCandidateStrategy(IConfigurationManager configurationManager,
                                  IUserAccountService userAccountService,
                                  IAuthenticationService authenticationService,
                                  ICandidateWriteRepository candidateWriteRepository,
                                  ICommunicationService communicationService,
                                  ICodeGenerator codeGenerator,
                                  IUserReadRepository userReadRepository)
 {
     _userAccountService       = userAccountService;
     _authenticationService    = authenticationService;
     _candidateWriteRepository = candidateWriteRepository;
     _communicationService     = communicationService;
     _codeGenerator            = codeGenerator;
     _userReadRepository       = userReadRepository;
     _activationCodeExpiryDays = configurationManager.GetAppSetting <int>("ActivationCodeExpiryDays");
 }
コード例 #29
0
 public UpdateUsernameStrategy(
     IUserDirectoryProvider userDirectoryProvider,
     IUserReadRepository userReadRepository,
     IUserWriteRepository userWriteRepository,
     IAuthenticationRepository authenticationRepository,
     IAuditRepository auditRepository,
     ICodeGenerator codeGenerator,
     ILogService logService)
 {
     _userDirectoryProvider    = userDirectoryProvider;
     _userReadRepository       = userReadRepository;
     _userWriteRepository      = userWriteRepository;
     _authenticationRepository = authenticationRepository;
     _auditRepository          = auditRepository;
     _codeGenerator            = codeGenerator;
     _logService = logService;
 }
コード例 #30
0
 public RegisterCandidateStrategy(IConfigurationService configurationService,
                                  IUserAccountService userAccountService,
                                  IAuthenticationService authenticationService,
                                  ICandidateWriteRepository candidateWriteRepository,
                                  ICommunicationService communicationService,
                                  ICodeGenerator codeGenerator,
                                  IUserReadRepository userReadRepository, IServiceBus serviceBus)
 {
     _userAccountService       = userAccountService;
     _authenticationService    = authenticationService;
     _candidateWriteRepository = candidateWriteRepository;
     _communicationService     = communicationService;
     _codeGenerator            = codeGenerator;
     _userReadRepository       = userReadRepository;
     _serviceBus = serviceBus;
     _activationCodeExpiryDays = configurationService.Get <UserAccountConfiguration>().ActivationCodeExpiryDays;
 }