public ManagingMarksPresenter(
            IManagingMarksView managingMarksView,
            ISubjectManagementService subjectManagementService,
            IClassOfStudentsManagementService classOfStudentsManagementService,
            IStudentManagementService studentManagementService,
            IMarksManagementService marksManagementService)
            : base(managingMarksView)
        {
            Guard.WhenArgument(subjectManagementService, "subjectManagementService").IsNull().Throw();
            Guard.WhenArgument(classOfStudentsManagementService, "classOfStudentsManagementService").IsNull().Throw();
            Guard.WhenArgument(studentManagementService, "studentManagementService").IsNull().Throw();
            Guard.WhenArgument(marksManagementService, "marksManagementService").IsNull().Throw();

            this.subjectManagementService         = subjectManagementService;
            this.classOfStudentsManagementService = classOfStudentsManagementService;
            this.marksManagementService           = marksManagementService;
            this.studentManagementService         = studentManagementService;

            this.View.EventBindSubjectsForTheSelectedTeacher += this.View_EventBindSubjects;
            this.View.EventBindClasses          += this.View_EventBindClasses;
            this.View.EventBindSchoolReportCard += this.View_EventBindSchoolReportCard;
            this.View.EventInsertMark           += this.View_EventInsertMark;
            this.View.EventBindStudents         += this.View_EventBindStudents;
            this.View.EventBindMarks            += this.View_EventBindMarks;
        }
Ejemplo n.º 2
0
        public SchoolReportCardPreseneter(
            ISchoolReporCardView view,
            IMarksManagementService marksManagementService)
            : base(view)
        {
            Guard.WhenArgument(marksManagementService, "marksManagementService").IsNull().Throw();

            this.View.EvenGetStudentMarks += this.View_EvenGetStudentMarks;

            this.marksManagementService = marksManagementService;
        }