public QuizCreatedEventHandler( IBusPublisher busPublisher, IOperationRepository operationRepository) { _busPublisher = busPublisher.ThrowIfNull(nameof(busPublisher)); _operationRepository = operationRepository.ThrowIfNull(nameof(operationRepository)); }
public CreateQuizRejectedEventHandler( IOperationRepository operationRepository, IBusPublisher busPublisher) { _operationRepository = operationRepository.ThrowIfNull(nameof(operationRepository)); _busPublisher = busPublisher.ThrowIfNull(nameof(busPublisher)); }
public CreateQuizOperationEventHandler( IOperationRepository operationRepository, IBusPublisher busPublisher, IMapper mapper) { _operationRepository = operationRepository.ThrowIfNull(nameof(operationRepository)); _busPublisher = busPublisher.ThrowIfNull(nameof(busPublisher)); _mapper = mapper.ThrowIfNull(nameof(mapper)); }
public CreateQuizEventHandler( IMapper mapper, IReadQuizRepository readQuizRepository, IWriteQuizRepository writeQuizRepository, IBusPublisher busPublisher) { _readQuizRepository = readQuizRepository.ThrowIfNull(nameof(readQuizRepository)); _writeQuizRepository = writeQuizRepository.ThrowIfNull(nameof(writeQuizRepository)); _busPublisher = busPublisher.ThrowIfNull(nameof(busPublisher)); _mapper = mapper; }