Esempio n. 1
0
        public RegisterTeacherPresenter(IRegisterTeacherView view, IAppicationUserFactory appUserFactory)
            : base(view)
        {
            Validator.ValidateForNull(appUserFactory, "appUserFactory");

            this.appUserFactory = appUserFactory;

            this.View.RegisterTeacherClick += View_RegisterTeacherClick;
        }
        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;
        }
Esempio n. 3
0
        public RegisterParentPresenter(IRegisterParentView view, ITeacherService teacherService, IStudentService studentService, IAppicationUserFactory userFactory)
            : base(view)
        {
            Validator.ValidateForNull(teacherService, "teacherService");
            Validator.ValidateForNull(studentService, "studentService");
            Validator.ValidateForNull(userFactory, "userFactory");

            this.teacherService = teacherService;
            this.studentService = studentService;
            this.userFactory    = userFactory;

            this.View.PageLoad             += View_PageLoad;
            this.View.StudentClassSelected += View_StudentClassSelected;
            this.View.RegisterParentClick  += View_RegisterParentClick;
        }