public AddMarksPresenter(
            IAddMarksView view,
            IStudentClassService studentClassService,
            IStudentService studentService,
            ITeacherService teacherService,
            IMarkService markService,
            IMarkFactory markFactory)
            : base(view)
        {
            Validator.ValidateForNull(studentClassService, "studentClassService");
            Validator.ValidateForNull(studentService, "studentService");
            Validator.ValidateForNull(teacherService, "teacherService");
            Validator.ValidateForNull(markService, "markService");
            Validator.ValidateForNull(markFactory, "markFactory");

            this.studentClassService = studentClassService;
            this.studentService      = studentService;
            this.teacherService      = teacherService;
            this.markFactory         = markFactory;
            this.markService         = markService;

            this.View.PageLoad      += View_PageLoad;
            this.View.ClassSelected += View_ClassSelected;
            this.View.InsertMarks   += View_InsertMarks;
        }
예제 #2
0
 public StudentInfoController(IStudentInfoService studentInfoService, IStudentClassService studentClassService, IReportCardService reportCardService, IMemoryCache cache)
 {
     _studentInfoService  = studentInfoService;
     _studentClassService = studentClassService;
     _reportCardService   = reportCardService;
     _cache = cache;
 }
예제 #3
0
 public StudentController(IStudentService studentService, IStudentClassService studentClassService,
                          ILearningClassService learningClassService)
 {
     _studentService       = studentService;
     _studentClassService  = studentClassService;
     _learningClassService = learningClassService;
 }
예제 #4
0
 public ClassService(IClassRepository classRepository, IStudentService studentService, ITeacherService teacherService, IStudentClassService studentClassService, ITeacherClassService teacherClassService)
 {
     _classRepository     = classRepository;
     _studentService      = studentService;
     _teacherService      = teacherService;
     _studentClassService = studentClassService;
     _teacherClassService = teacherClassService;
 }
        public AddTeacherToClassPresenter(IAddTeacherToClassView view, ITeacherService teacherService, IStudentClassService studentClassService)
            : base(view)
        {
            Validator.ValidateForNull(teacherService, "teacherService");
            Validator.ValidateForNull(studentClassService, "studentClassService");

            this.teacherService      = teacherService;
            this.studentClassService = studentClassService;

            this.View.PageLoad        += View_PageLoad;
            this.View.TeacherSelected += View_TeacherSelected;
            this.View.AddTeacherClick += View_AddTeacherClick;
        }
예제 #6
0
        public AddNewClassPresenter(IAddNewClassView view, IStudentClassService studentClassService, ITeacherService teacherService, IStudentClassFactory studentClassFactory)
            : base(view)
        {
            Validator.ValidateForNull(studentClassService, "studentClassService");
            Validator.ValidateForNull(teacherService, "teacherService");
            Validator.ValidateForNull(studentClassFactory, "studentClassFactory");

            this.studentClassService = studentClassService;
            this.teacherService      = teacherService;
            this.studentClassFactory = studentClassFactory;

            this.View.PageLoad         += View_PageLoad;
            this.View.CreateClassClick += View_CreateClassClick;
        }
        public RegisterStudentPresenter(IRegisterStudentView view, IStudentClassService studentClassService, ITeacherService teacherService, IAppicationUserFactory appUserFactory)
            : base(view)
        {
            Validator.ValidateForNull(studentClassService, "studentClassService");
            Validator.ValidateForNull(teacherService, "teacherService");
            Validator.ValidateForNull(appUserFactory, "appUserFactory");

            this.studentClassService = studentClassService;
            this.teacherService      = teacherService;
            this.appUserFactory      = appUserFactory;

            this.View.PageLoad    += View_PageLoad;
            this.View.SubmitClick += View_SubmitClick;
        }
예제 #8
0
        public AddNewLecturePresenter(IAddNewLectureView view, ITeacherService teacherService, ILectureService lectureService, IStudentClassService studentClassService, ILectureFactory lectureFactory, IDateParser dateParser)
            : base(view)
        {
            Validator.ValidateForNull(teacherService, "teacherService");
            Validator.ValidateForNull(lectureService, "lectureService");
            Validator.ValidateForNull(studentClassService, "studentClassService");
            Validator.ValidateForNull(lectureFactory, "lectureFactory");
            Validator.ValidateForNull(dateParser, "dateParser");

            this.teacherService      = teacherService;
            this.lectureService      = lectureService;
            this.studentClassService = studentClassService;
            this.lectureFactory      = lectureFactory;
            this.dateParser          = dateParser;

            this.View.PageLoad        += View_PageLoad;
            this.View.AddLectureClick += View_AddLectureClick;
        }
예제 #9
0
 public StudentClassController(IStudentClassService studentClassService)
 {
     _studentClassService = studentClassService;
 }
예제 #10
0
 public StudentService()
 {
     _studentService      = new MVCStudentClassAssignment.DAL.StudentService();
     _studentClassService = new StudentClassService();
 }
 public StudentClassController(IStudentClassService studentClassService, IDepartmentService departmentService)
 {
     _studentClassService = studentClassService;
     _departmentService   = departmentService;
 }
예제 #12
0
 public StudentService()
 {
     studentClassService = new StudentClassService();
 }