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;
        }
Exemplo n.º 2
0
 public RegisterController(IStudentManagementService studentService, IAuthService authService)
 {
     this.studentService = studentService;
     this.authService    = authService;
 }
Exemplo n.º 3
0
 public StudentManagementController(IOptions <ConnectionStringsDto> settings)
 {
     _serviceSettings         = settings;
     studentManagementService = new StudentManagementService(settings.Value);
 }
Exemplo n.º 4
0
 public HomeController(IStudentManagementService stdService)
 {
     this.stdService = stdService;
 }
Exemplo n.º 5
0
 public StudentManagementController(IStudentManagementService studentManagementService)
 {
     _studentManagementService = studentManagementService;
 }
Exemplo n.º 6
0
 public StudentController(IStudentManagementService stdManagementService, ICourseManagementService courseservice)
 {
     this.stdManagementService = stdManagementService;
     this.courseservice        = courseservice;
 }