Ejemplo n.º 1
0
 public Handler(IUnitOfWork uow, IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository, IMediator mediator)
 {
     _uow = uow;
     _userReadRepository  = userReadRepository;
     _userWriteRepository = userWriteRepository;
     _mediator            = mediator;
 }
Ejemplo n.º 2
0
 public ActivateUserStrategy(IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository, IAuditRepository auditRepository, IServiceBus serviceBus)
 {
     _userReadRepository  = userReadRepository;
     _userWriteRepository = userWriteRepository;
     _auditRepository     = auditRepository;
     _serviceBus          = serviceBus;
 }
Ejemplo n.º 3
0
 public RegisterUserStrategy(IUserWriteRepository userWriteRepository,
                             IConfigurationManager configurationManager,
                             IUserReadRepository userReadRepository)
 {
     _userWriteRepository      = userWriteRepository;
     _userReadRepository       = userReadRepository;
     _activationCodeExpiryDays = configurationManager.GetAppSetting <int>("ActivationCodeExpiryDays");
 }
 public RegisterUserStrategy(IUserWriteRepository userWriteRepository,
                             IConfigurationService configurationService,
                             IUserReadRepository userReadRepository)
 {
     _userWriteRepository      = userWriteRepository;
     _userReadRepository       = userReadRepository;
     _activationCodeExpiryDays = configurationService.Get <UserAccountConfiguration>().ActivationCodeExpiryDays;
 }
 public SetPendingDeletionStrategy(IConfigurationService configurationService, IUserWriteRepository userWriteRepository, IAuditRepository auditRepository, ILogService logService, IServiceBus serviceBus)
     : base(configurationService)
 {
     _userWriteRepository = userWriteRepository;
     _auditRepository     = auditRepository;
     _logService          = logService;
     _serviceBus          = serviceBus;
 }
 public UserCommandHandler(
     IMediator mediator,
     IUserReadRepository userReadRepository,
     IUserWriteRepository userWriteRepository)
 {
     this.mediator            = mediator;
     this.userReadRepository  = userReadRepository;
     this.userWriteRepository = userWriteRepository;
 }
Ejemplo n.º 7
0
 public UnlockAccountStrategy(
     IUserReadRepository userReadRepository,
     IUserWriteRepository userWriteRepository,
     ISendAccountUnlockCodeStrategy sendAccountUnlockCodeStrategy)
 {
     _userReadRepository            = userReadRepository;
     _userWriteRepository           = userWriteRepository;
     _sendAccountUnlockCodeStrategy = sendAccountUnlockCodeStrategy;
 }
Ejemplo n.º 8
0
 public LockUserStrategy(
     IConfigurationManager configurationManager,
     ICodeGenerator codeGenerator,
     IUserWriteRepository userWriteRepository)
 {
     _userWriteRepository  = userWriteRepository;
     _configurationManager = configurationManager;
     _codeGenerator        = codeGenerator;
 }
 public SendAccountRemindersStrategy(IConfigurationService configurationService, IUserWriteRepository userWriteRepository, ICandidateWriteRepository candidateWriteRepository, IAuditRepository auditRepository, ICommunicationService communicationService, ILogService logService)
     : base(configurationService)
 {
     _userWriteRepository      = userWriteRepository;
     _candidateWriteRepository = candidateWriteRepository;
     _auditRepository          = auditRepository;
     _communicationService     = communicationService;
     _logService = logService;
 }
Ejemplo n.º 10
0
 public SetUserStatusPendingDeletionStrategy(IUserWriteRepository userWriteRepository,
                                             IAuditRepository auditRepository,
                                             ILogService logService, IServiceBus serviceBus)
 {
     _userWriteRepository = userWriteRepository;
     _auditRepository     = auditRepository;
     _logService          = logService;
     _serviceBus          = serviceBus;
 }
Ejemplo n.º 11
0
 public LockUserStrategy(
     IConfigurationService configurationService,
     ICodeGenerator codeGenerator,
     IUserWriteRepository userWriteRepository)
 {
     _userWriteRepository      = userWriteRepository;
     _codeGenerator            = codeGenerator;
     _userAccountConfiguration = configurationService.Get <UserAccountConfiguration>();
 }
Ejemplo n.º 12
0
        public UserWriteService(
            IUserWriteRepository userWriteRepository,
            IUserReadRepository userReadRepository,
            IRoleReadRepository roleReadRepository)
        {
            this.userWriteRepository = userWriteRepository;
            this.userReadRepository  = userReadRepository;

            this.roleReadRepository = roleReadRepository;
        }
Ejemplo n.º 13
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;
 }
Ejemplo n.º 14
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");
 }
Ejemplo n.º 15
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;
 }
Ejemplo n.º 16
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");
 }
Ejemplo n.º 17
0
            public ChangePasswordCommandHandler(ICustomerWriteRepository customerWriteRepository,
                                                ICustomerReadRepository customerReadRepository,
                                                IUserWriteRepository userWriteRepository,
                                                IUserReadRepository userReadRepository,
                                                IMapper mapper)
            {
                _customerWriteRepository = customerWriteRepository;
                _customerReadRepository  = customerReadRepository;
                _userWriteRepository     = userWriteRepository;
                _userReadRepository      = userReadRepository;

                _mapper = mapper;
            }
Ejemplo n.º 18
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");
 }
 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;
 }
 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;
 }
Ejemplo n.º 21
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;
        }
 public HardDeleteStrategy(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)
     : base(configurationService)
 {
     _userWriteRepository        = userWriteRepository;
     _authenticationRepository   = authenticationRepository;
     _candidateWriteRepository   = candidateWriteRepository;
     _savedSearchReadRepository  = savedSearchReadRepository;
     _savedSearchWriteRepository = savedSearchWriteRepository;
     _apprenticeshipApplicationReadRepository  = apprenticeshipApplicationReadRepository;
     _apprenticeshipApplicationWriteRepository = apprenticeshipApplicationWriteRepository;
     _traineeshipApplicationReadRepository     = traineeshipApplicationReadRepository;
     _traineeshipApplicationWriteRepository    = traineeshipApplicationWriteRepository;
     _auditRepository = auditRepository;
     _logService      = logService;
     _serviceBus      = serviceBus;
 }
Ejemplo n.º 23
0
 public Handler(IUnitOfWork uow, IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository)
 {
     _uow = uow;
     _userReadRepository  = userReadRepository;
     _userWriteRepository = userWriteRepository;
 }
Ejemplo n.º 24
0
 public CreateUserHandler(IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository, IMapper mapper)
 {
     _userReadRepository  = userReadRepository ?? throw new ArgumentNullException(nameof(userReadRepository));
     _userWriteRepository = userWriteRepository ?? throw new ArgumentNullException(nameof(userWriteRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 25
0
 public UserRepository(IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository)
 {
     this.userReadRepository  = userReadRepository;
     this.userWriteRepository = userWriteRepository;
 }
Ejemplo n.º 26
0
 public ActivateUserStrategy(IUserReadRepository userReadRepository, IUserWriteRepository userWriteRepository)
 {
     _userReadRepository  = userReadRepository;
     _userWriteRepository = userWriteRepository;
 }
Ejemplo n.º 27
0
 public WriteUser(IUserWriteRepository userWriteRepository)
 {
     this._userWriteRepository = userWriteRepository;
 }
Ejemplo n.º 28
0
        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;
        }
Ejemplo n.º 29
0
 public void SetUp()
 {
     _userWriteRepository = Container.GetInstance <IUserWriteRepository>();
     _userReadRepository  = Container.GetInstance <IUserReadRepository>();
 }
Ejemplo n.º 30
0
 public UserDomainService(IUserWriteRepository userWriteRepository, IUserReadRepository userReadRepository)
 {
     _userWriteRepository = userWriteRepository;
     _userReadRepository  = userReadRepository;
 }