Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public ClassroomAllocationService(IClassroomAllocationMapper classroomAllocationMapper, IReadRepository readRepository, IWriteRepository writeRepository)
 {
     this.classroomAllocationMapper = classroomAllocationMapper ?? throw new ArgumentNullException();
     this.readRepository            = readRepository ?? throw new ArgumentNullException();
     this.writeRepository           = writeRepository ?? throw new ArgumentNullException();
 }