public QuestionsController(IReadQuestionRepository readQuestionRepository, IWriteQuestionRepository writeQuestionRepository, IMapper <Question, QuestionDto, QuestionCreateDto> mapper)
 {
     _readQuestionRepository  = readQuestionRepository;
     _writeQuestionRepository = writeQuestionRepository;
     _mapper = mapper;
 }
 public UpdateQuestionCommandHandler(IMapper mapper, IWriteQuestionRepository writeQuestionRepository)
 {
     _mapper = mapper.ThrowIfNull(nameof(mapper));
     _writeQuestionRepository = writeQuestionRepository.ThrowIfNull(nameof(writeQuestionRepository));
 }
 public DeleteQuestionCommandHandler(IWriteQuestionRepository writeQuestionRepository)
 {
     _writeQuestionRepository = writeQuestionRepository.ThrowIfNull(nameof(writeQuestionRepository));
 }