protected CreateEntityCommandHandlerBase( IUnitOfWork unitOfWork, IEnumerable <IValidator <TCommand> > validators, IWriteOnlyRepository <TEntity> entityWriteOnlyRepository) : base(unitOfWork, validators) { _entityWriteOnlyRepository = entityWriteOnlyRepository.ThrowIfNull(nameof(entityWriteOnlyRepository)); }
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)); }
public MoveUserCommandHandler( IUnitOfWork unitOfWork, IEnumerable <IValidator <MoveUserCommand> > validators, IMapper mapper, IReadOnlyRepository <ReadableUser> readOnlyRepository, IWriteOnlyRepository <WritableUser> writeOnlyRepository) : base(unitOfWork, validators) { _readOnlyRepository = readOnlyRepository.ThrowIfNull(nameof(readOnlyRepository)); _writeOnlyRepository = writeOnlyRepository.ThrowIfNull(nameof(writeOnlyRepository)); _mapper = mapper.ThrowIfNull(nameof(mapper)); }