コード例 #1
0
 public ExamService(IReadRepository readRepository, IWriteRepository writeRepository,
                    IExamMapper examMapper,
                    ICourseService courseService,
                    IStudentCourseService studentCourseService,
                    IStudentService studentService,
                    IClassroomAllocationService classroomAllocationService,
                    IClassroomAllocationMapper classroomAllocationMapper,
                    IGradeMapper gradeMapper,
                    IStudentMapper studentMapper,
                    IEmailService emailService)
 {
     this.writeRepository            = writeRepository ?? throw new ArgumentNullException();
     this.readRepository             = readRepository ?? throw new ArgumentNullException();
     this.examMapper                 = examMapper ?? throw new ArgumentNullException();
     this.courseService              = courseService ?? throw new ArgumentNullException();
     this.classroomAllocationMapper  = classroomAllocationMapper ?? throw new ArgumentNullException();
     this.classroomAllocationService = classroomAllocationService ?? throw new ArgumentNullException();
     this.studentCourseService       = studentCourseService ?? throw new ArgumentNullException();
     this.studentService             = studentService ?? throw new ArgumentNullException();
     this.gradeMapper                = gradeMapper ?? throw new ArgumentNullException();
     this.studentMapper              = studentMapper ?? throw new ArgumentNullException();
     this.emailService               = emailService ?? throw new ArgumentNullException();
 }
コード例 #2
0
 public ExamsController(IExamService examService, IClassroomAllocationService classroomAllocationService)
 {
     this.examService = examService ?? throw new ArgumentNullException();
     this.classroomAllocationService = classroomAllocationService ?? throw new ArgumentNullException();
 }