Beispiel #1
0
 public QuizCreatedEventHandler(
     IBusPublisher busPublisher,
     IOperationRepository operationRepository)
 {
     _busPublisher        = busPublisher.ThrowIfNull(nameof(busPublisher));
     _operationRepository = operationRepository.ThrowIfNull(nameof(operationRepository));
 }
Beispiel #2
0
 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));
 }
Beispiel #4
0
 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;
 }