public void Cleanup() { this._exam = null; this._examDto = null; this._examCreatingDto = null; this._examMapper = null; }
public void Setup() { this._exam = ExamTestUtils.GetExam(); this._examDto = ExamTestUtils.GetExamDto(this._exam.Id); this._examCreatingDto = ExamTestUtils.GetExamCreatingDto(); this._examMapper = new ExamMapper(); }
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(); }