public CreateUserCommandHandler(
     IUnitOfWork unitOfWork,
     IEnumerable <IValidator <CreateUserCommand> > validators,
     IWriteOnlyRepository <User> userWriteOnlyRepository,
     IHashManager hashManager) :
     base(unitOfWork, validators)
 {
     _userWirteOnlyRepository = userWriteOnlyRepository.ThrowIfNull(nameof(userWriteOnlyRepository));
     _hashManager             = hashManager.ThrowIfNull(nameof(hashManager));
 }
Exemple #2
0
 public AuthenticateCommandHandler(
     IUnitOfWork unitOfWork,
     IEnumerable <IValidator <AuthenticateCommand> > validators,
     IHashManager hashManager,
     IReadOnlyRepository <User> userReadOnlyRepository,
     IRSACryptoEngine cryptoEngine) :
     base(unitOfWork, validators)
 {
     _cryptoEngine           = cryptoEngine.ThrowIfNull(nameof(cryptoEngine));
     _userReadOnlyRepository = userReadOnlyRepository.ThrowIfNull(nameof(userReadOnlyRepository));
     _hashManager            = hashManager.ThrowIfNull(nameof(hashManager));
 }