public CreateUserAuthorizationHandler(IUserAuthorizationRepository repository, IBusPublisher busPublisher, IAccountingGroupVerifier agVerifier, IUserVerifier userVerifier)
 {
     _repository   = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _agVerifier   = agVerifier ?? throw new ArgumentNullException(nameof(agVerifier));
     _userVerifier = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
 }
Example #2
0
 public UserController(IUserRepository _userRepository,
                       IRatingRepository _ratingRepository,
                       IValidator _validator,
                       IPasswordHasher _passwordHasher,
                       ICounterRepository _counterRepository,
                       IPersistentLoginHandler _loginHandler,
                       ITimedTrainingScoreRepository _timedTrainingScoreRepository,
                       IUserVerifier _userVerifier,
                       IEmailSender _emailSender,
                       IGameRepository _gameRepository,
                       IOptions <Settings> settings)
     : base(_userRepository, _loginHandler)
 {
     userRepository               = _userRepository;
     ratingRepository             = _ratingRepository;
     validator                    = _validator;
     passwordHasher               = _passwordHasher;
     counterRepository            = _counterRepository;
     loginHandler                 = _loginHandler;
     timedTrainingScoreRepository = _timedTrainingScoreRepository;
     userVerifier                 = _userVerifier;
     emailSender                  = _emailSender;
     gameRepository               = _gameRepository;
     recaptchaKey                 = settings.Value.RecaptchaKey;
     requireEmailVerification     = settings.Value.Email.RequireEmailVerification;
 }
Example #3
0
 public CreateManualStockOperationHandler(IStockOperationRepository repository, IBusPublisher busPublisher, IStockItemVerifier stockItemVerifier, IUserVerifier userVerifier)
 {
     _repository        = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher      = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _stockItemVerifier = stockItemVerifier ?? throw new ArgumentNullException(nameof(stockItemVerifier));
     _userVerifier      = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
 }
Example #4
0
 public UpdateSaleStateChangeHandler(ISalesRepository salesRepository, IBusPublisher busPublisher, IPointOfSaleVerifier posVerifier, IUserVerifier userVerifier)
 {
     _salesRepository = salesRepository ?? throw new ArgumentNullException(nameof(salesRepository));
     _busPublisher    = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _posVerifier     = posVerifier ?? throw new ArgumentNullException(nameof(posVerifier));
     _userVerifier    = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
 }
Example #5
0
 public CreateAssignmentToUserHandler(IAssignmentsRepository repository, IBusPublisher busPublisher, IAuthenticationMeansVerifier meansVerifier, IUserVerifier userVerifier, IAssignmentExclusivityVerifier exclVerifier)
 {
     _repository    = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher  = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _meansVerifier = meansVerifier ?? throw new ArgumentNullException(nameof(meansVerifier));
     _userVerifier  = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
     _exclVerifier  = exclVerifier ?? throw new ArgumentNullException(nameof(exclVerifier));
 }
Example #6
0
 public CreateSaleHandler(ISalesRepository salesRepository, IBusPublisher busPublisher, IAccountingGroupVerifier agVerifier, IUserVerifier userVerifier, IPointOfSaleVerifier posVerifier, IAuthenticationMeansVerifier amVerifier, IProductVerifier productVerifier, IOfferVerifier offerVerifier)
 {
     _salesRepository = salesRepository ?? throw new ArgumentNullException(nameof(salesRepository));
     _busPublisher    = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _agVerifier      = agVerifier ?? throw new ArgumentNullException(nameof(agVerifier));
     _userVerifier    = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
     _posVerifier     = posVerifier ?? throw new ArgumentNullException(nameof(posVerifier));
     _amVerifier      = amVerifier ?? throw new ArgumentNullException(nameof(amVerifier));
     _productVerifier = productVerifier ?? throw new ArgumentNullException(nameof(productVerifier));
     _offerVerifier   = offerVerifier ?? throw new ArgumentNullException(nameof(offerVerifier));
 }
 public UserController(IUserRepository _userRepository,
                       IRatingRepository _ratingRepository,
                       IValidator _validator,
                       IPasswordHasher _passwordHasher,
                       ICounterRepository _counterRepository,
                       IPersistentLoginHandler _loginHandler,
                       ITimedTrainingScoreRepository _timedTrainingScoreRepository,
                       IUserVerifier _userVerifier,
                       IEmailSender _emailSender)
     : base(_userRepository, _loginHandler)
 {
     userRepository               = _userRepository;
     ratingRepository             = _ratingRepository;
     validator                    = _validator;
     passwordHasher               = _passwordHasher;
     counterRepository            = _counterRepository;
     loginHandler                 = _loginHandler;
     timedTrainingScoreRepository = _timedTrainingScoreRepository;
     userVerifier                 = _userVerifier;
     emailSender                  = _emailSender;
 }
Example #8
0
 public UpdatePaymentHandler(IPaymentsRepository paymentsRepository, IBusPublisher busPublisher, IUserVerifier userVerifier)
 {
     _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository));
     _busPublisher       = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _userVerifier       = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
 }
Example #9
0
 public ToDoApplication(IUserVerifier userVerifier, IToDoListCreator toDoListCreator, IToDoListRepository toDoListRepository)
 {
     this.userVerifier = userVerifier;
     this.toDoListCreator = toDoListCreator;
     this.toDoListRepository = toDoListRepository;
 }