示例#1
0
 public TestQuestionOptionService(IUnitOfWork unitOfWork, IMapper mapper)
 {
     this.unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.questionOptionRepository     = unitOfWork.GetRepository <TestQuestionOption, ITestQuestionOptionRepository>() ?? throw new NullReferenceException(nameof(questionOptionRepository));
     this.resultAnswerOptionRepository = unitOfWork.GetRepository <ResultAnswerOption, IResultAnswerOptionRepository>() ?? throw new NullReferenceException(nameof(resultAnswerOptionRepository));
     this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }