Exemple #1
0
 public IndexController(
     IStuanswerdetailService stuanswerdetailService,
     IStuscoreService stuscoreService,
     IExamService examService)
 {
     _stuanswerdetailService = stuanswerdetailService;
     _stuscoreService        = stuscoreService;
     _examService            = examService;
 }
Exemple #2
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public ExamController(
     IExamService examService,
     IQuestionService questionService,
     IStuanswerdetailService stuanswerdetailService,
     ISelectService selectService,
     IJudgeService judgeService,
     IStuscoreService stuscoreService)
 {
     _examService            = examService;
     _questionService        = questionService;
     _stuanswerdetailService = stuanswerdetailService;
     _selectService          = selectService;
     _judgeService           = judgeService;
     _stuscoreService        = stuscoreService;
 }
Exemple #3
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 /// <param name="stuanswerdetail"></param>
 public WrongController(IStuanswerdetailService stuanswerdetail)
 {
     _stuanswerdetail = stuanswerdetail;
 }