public CreateQuizCommandHandler(
     IMapper mapper,
     IReadQuizRepository readQuizRepository,
     IWriteQuizRepository writeQuizRepository)
 {
     _mapper              = mapper.ThrowIfNull(nameof(mapper));
     _readQuizRepository  = readQuizRepository.ThrowIfNull(nameof(readQuizRepository));
     _writeQuizRepository = writeQuizRepository.ThrowIfNull(nameof(writeQuizRepository));
 }
Example #2
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;
 }
 public GetQuizListQueryHandler(IMapper mapper, IReadQuizRepository readQuizRepository)
 {
     _mapper             = mapper.ThrowIfNull(nameof(mapper));
     _readQuizRepository = readQuizRepository.ThrowIfNull(nameof(readQuizRepository));
 }