示例#1
0
 public TeacherController(ISchoolClassService scoolClassService, IDropdownQueries dropdownQueries, IMappingEngine mappingEngine, ITeacherService teacherService)
 {
     _scoolClassService = scoolClassService;
     _dropdownQueries = dropdownQueries;
     _mappingEngine = mappingEngine;
     _teacherService = teacherService;
 }
示例#2
0
 public HomeController(IMessageService messageService, IApplicationUserManager userManager, IArticleService ArticleService, ITeacherService TeacherService, IArticleEvaluationService ArticleEvaluation)
 {
     _TeacherService = TeacherService;
     _ArticleEvaluationService = ArticleEvaluation;
     _ArticleService = ArticleService;
     _userManager = userManager;
     _messageService = messageService;
 }
 public ScheduleService(ILogger logger, IUnitOfWork unitOfWork, ITeacherService teacherService, ISubjectService subjectService, IGroupService groupService, ILessonDetailService lessonDetail)
     : base(logger)
 {
     this.unitOfWork = unitOfWork;
     this.teacherService = teacherService;
     this.subjectService = subjectService;
     this.groupService = groupService;
     this.lessonDetailService = lessonDetail;
 }
示例#4
0
        public TeacherServiceTests()
        {
            this.storageBrokerMock  = new Mock <IStorageBroker>();
            this.loggingBrokerMock  = new Mock <ILoggingBroker>();
            this.dateTimeBrokerMock = new Mock <IDateTimeBroker>();

            this.teacherService = new TeacherService(
                storageBroker: this.storageBrokerMock.Object,
                loggingBroker: this.loggingBrokerMock.Object,
                dateTimeBroker: this.dateTimeBrokerMock.Object);
        }
示例#5
0
 public ReviewsController(
     ITeacherService teacherService,
     UserManager <ApplicationUser> userManager,
     IImageService imageService,
     HtmlSanitizer htmlSanitizer)
 {
     this.teacherService = teacherService;
     this.userManager    = userManager;
     this.imageService   = imageService;
     this.htmlSanitizer  = htmlSanitizer;
 }
 public OwnerController(SignInManager <AppUser> signInManager, IUserService userService,
                        ICourseService courseService, ITeacherService teacherService,
                        ISchoolService schoolService, IPaymentService paymentService)
 {
     _signInManager  = signInManager;
     _userService    = userService;
     _courseService  = courseService;
     _teacherService = teacherService;
     _schoolService  = schoolService;
     _paymentService = paymentService;
 }
 public GroupController(IGroupService groupService, ITrainingMajorService trainingMajorService,
                        ILearningClassService learningClassService, ICompanyService companyService, IStudentService studentService,
                        ITeacherService teacherService)
 {
     _groupService         = groupService;
     _trainingMajorService = trainingMajorService;
     _learningClassService = learningClassService;
     _companyService       = companyService;
     _studentService       = studentService;
     _teacherService       = teacherService;
 }
示例#8
0
 public ProfileController(RoleManager <IdentityRole> roleManager,
                          IUserService userService,
                          IStudentService studentService,
                          IParentService parentService,
                          ITeacherService teacherService) : base(roleManager)
 {
     _userService    = userService;
     _studentService = studentService;
     _parentService  = parentService;
     _teacherService = teacherService;
 }
示例#9
0
 public LessonsController(
     ILessonService lessonService,
     ISchoolclassService schoolclassService,
     ITeacherService teacherService,
     IPeriodService periodService)
 {
     _lessonService      = lessonService;
     _schoolclassService = schoolclassService;
     _teacherService     = teacherService;
     _periodService      = periodService;
 }
示例#10
0
 public CourseService(ApplicationDbContext context, IUserService userService,
                      UserManager <AppUser> userManager, IPaymentService paymentService,
                      ITeacherService teacherService, ISubscriptionsService subscriptionsService)
 {
     _context              = context;
     _userService          = userService;
     _userManager          = userManager;
     _paymentService       = paymentService;
     _teacherService       = teacherService;
     _subscriptionsService = subscriptionsService;
 }
示例#11
0
        public ChangeLectureStatusPresenter(IChangeLectureStatusView view, ITeacherService teacherService, ILectureService lectureService)
            : base(view)
        {
            Validator.ValidateForNull(teacherService, "teacherService");
            Validator.ValidateForNull(lectureService, "lectureService");

            this.teacherService = teacherService;
            this.lectureService = lectureService;

            this.View.PageLoad     += View_PageLoad;
            this.View.UpdateStatus += View_UpdateStatus;
        }
示例#12
0
 public StudentDepartmentController(IStudentInfoService inf, IStudentService st, IEducationalDegreeService educ, IGruppaService gr, IFormEducationService efs,
                                    ICathedraService cs, IStudentService ss, ITeacherService ts)
 {
     studentInfo     = inf;
     studen          = st;
     educDegree      = educ;
     gruppaService   = gr;
     educFormService = efs;
     cathedra        = cs;
     starosta        = ss;
     curator         = ts;
 }
示例#13
0
 public AbstractTeacherController(
     ApiSettings settings,
     ILogger <AbstractTeacherController> logger,
     ITransactionCoordinator transactionCoordinator,
     ITeacherService teacherService,
     IApiTeacherModelMapper teacherModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.TeacherService     = teacherService;
     this.TeacherModelMapper = teacherModelMapper;
 }
示例#14
0
 public CalendarWorkingController(AppDbContext dbContext,
                                  ICalendarWorkingService calendarWorkingService,
                                  ITypeCalendarService typeCalendarService,
                                  ITeacherService teacherService,
                                  IWorkService workService)
 {
     _dbContext = dbContext;
     _calendarWorkingService = calendarWorkingService;
     _typeCalendarService    = typeCalendarService;
     _teacherService         = teacherService;
     _workService            = workService;
 }
示例#15
0
 public EmailService(ITeacherService teacherService,
                     ISemesterService semesterService, IGroupService groupService,
                     ICompanyTrainingMajorService companyTrainingMajorService, ICompanyService companyService,
                     IEmailHistoryService emailHistoryService)
 {
     _teacherService              = teacherService;
     _semesterService             = semesterService;
     _groupService                = groupService;
     _companyTrainingMajorService = companyTrainingMajorService;
     _companyService              = companyService;
     _emailHistoryService         = emailHistoryService;
 }
示例#16
0
 public CourseController(ICourseService courseService,
                         ITeacherService teacherService,
                         IStudentService studentService,
                         IGradeService gradeService,
                         IMapper mapper)
 {
     _courseService  = courseService;
     _teacherService = teacherService;
     _studentService = studentService;
     _gradeService   = gradeService;
     _mapper         = mapper;
 }
示例#17
0
 public CoursesController(ICourseService courseService,
                          ILessonService lessonService,
                          IClassroomService classroomService,
                          ITeacherService teacherService,
                          ITermService termService)
 {
     this.courseService    = courseService;
     this.lessonService    = lessonService;
     this.classroomService = classroomService;
     this.teacherService   = teacherService;
     this.termService      = termService;
 }
示例#18
0
 public SubjectController(ISubjectService subjectService,
                          ITeacherService teacherService,
                          IStudentService studentService,
                          IGradeService gradeService,
                          IMapper mapper)
 {
     _subjectService = subjectService;
     _teacherService = teacherService;
     _studentService = studentService;
     _gradeService   = gradeService;
     _mapper         = mapper;
 }
 public ClassRoomController(AppDbContext context, IRoomLessonTeacherService roomLessonTeacherService, ITeacherService teacherService, IClassRoomService classRoomService, UserManager <AppUser> userManager, INoteEntryService noteEntryService, IPeriodInformationService periodInformationService, IStudentService studentService, ILessonService lessonService)
 {
     this.context = context;
     this.roomLessonTeacherService = roomLessonTeacherService;
     this.teacherService           = teacherService;
     this.classRoomService         = classRoomService;
     this.userManager              = userManager;
     this.noteEntryService         = noteEntryService;
     this.periodInformationService = periodInformationService;
     this.studentService           = studentService;
     this.lessonService            = lessonService;
 }
        public MainWindow(IStudentService studentService,
                          ITeacherService teacherService,
                          IAppointmentService appointmentService)
        {
            _studentService     = studentService;
            _teacherService     = teacherService;
            _appointmentService = appointmentService;

            StyleManager.ApplicationTheme = new MaterialTheme();
            InitializeComponent();

            DataContext = new InputsViewModel(_studentService, _teacherService);
        }
 public CourseController(
     ICourseService courseService,
     IUniversityService universityService,
     ITeacherService teacherService,
     IFileStorageService fileStorageService,
     IMapper mapper)
 {
     this.courseService      = courseService;
     this.mapper             = mapper;
     this.universityService  = universityService;
     this.teacherService     = teacherService;
     this.fileStorageService = fileStorageService;
 }
        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;
        }
示例#23
0
 public AdministratorController(ITeacherService teacherService, IUserService userService,
                                ISchoolService schoolService, IStudentService studentService, IParentService parentService,
                                IClassService classService, ISubjectService subjectService, IStatisticsService statisticsService)
 {
     this.teacherService    = teacherService;
     this.userService       = userService;
     this.schoolService     = schoolService;
     this.studentService    = studentService;
     this.parentService     = parentService;
     this.classService      = classService;
     this.subjectService    = subjectService;
     this.statisticsService = statisticsService;
 }
示例#24
0
        public PlanTripViewModel(ITeacherService teacherService, IToddlerService toddlerService, ITripService tripService)
        {
            teacherService     = AppContainer.Resolve <ITeacherService>();
            toddlerService     = AppContainer.Resolve <IToddlerService>();
            tripService        = AppContainer.Resolve <ITripService>();
            _teacherService    = teacherService;
            _toddlerService    = toddlerService;
            _tripService       = tripService;
            confirmTripClicked = new RelayCommand(onTripConfirmedClick);

            //Mocking automatic assignment of a ID in a live database
            index = _tripService.getAllTrips().Count();
        }
示例#25
0
 public TeachersController(ISubjectService subjectService, ITextService textService,
                           ISchoolClassService classService, IStudentService studentService, IHomeworkService homeworkService,
                           ITeacherService teacherService, IAnswerService answerService, IWordDefinitionService wordDefinitionService)
 {
     _subjectService        = subjectService;
     _textService           = textService;
     _classService          = classService;
     _studentService        = studentService;
     _homeworkService       = homeworkService;
     _teacherService        = teacherService;
     _answerService         = answerService;
     _wordDefinitionService = wordDefinitionService;
 }
示例#26
0
 public ScanViewModel(INavigationService navigationService, IScanService scanService, IToddlerService toddlerService, ITripService tripService, ITeacherService teacherService)
 {
     scanService        = AppContainer.Resolve <IScanService>();
     toddlerService     = AppContainer.Resolve <IToddlerService>();
     tripService        = AppContainer.Resolve <ITripService>();
     teacherService     = AppContainer.Resolve <ITeacherService>();
     _navigationService = navigationService;
     _scanService       = scanService;
     _toddlerService    = toddlerService;
     _tripService       = tripService;
     _teacherService    = teacherService;
     QRScanned          = new Command(tripScan);
 }
示例#27
0
 public TeacherController(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IReferentialTeacherService referentialTeacherService,
     ITrainingCenterService trainingCenterService, ITrainingCourseService trainingCourseService, ITitleService titleService,
     ITeacherService TeacherService, IStateService stateService, ICityService cityService)
 {
     _unitOfWork = unitOfWork;
     _userManager = userManager;
     _TeacherService = TeacherService;
     _stateService = stateService;
     _cityService = cityService;
     _trainingCenterService = trainingCenterService;
     _titleService = titleService;
     _referentialTeacherService = referentialTeacherService;
 }
        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;
        }
示例#29
0
        public void OneTimeInitialize()
        {
            var mapperConfig = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <TeacherAdd_DTO, TeacherDB>();
                cfg.CreateMap <Teacher, TeacherDB>()
                .ReverseMap();
            });

            _mapper = new Mapper(mapperConfig);

            _mockUnitRepo = new Mock <IUnitOfWorkRepository>();
            _service      = new TeacherService(_mockUnitRepo.Object, _mapper);
        }
示例#30
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;
        }
示例#31
0
 public ApplicationController(
     IApplicationService applicationService,
     IUserService userService,
     ITeacherConfirmationService teacherConfirmationService,
     ICourseService courseService,
     ITeacherService teacherService,
     ApplicationModelMapper applicationModelMapper)
 {
     _applicationService         = applicationService;
     _userService                = userService;
     _teacherConfirmationService = teacherConfirmationService;
     _courseService              = courseService;
     _teacherService             = teacherService;
     _applicationModelMapper     = applicationModelMapper;
 }
示例#32
0
 public TeacherController(
     ApiSettings settings,
     ILogger <TeacherController> logger,
     ITransactionCoordinator transactionCoordinator,
     ITeacherService teacherService,
     IApiTeacherServerModelMapper teacherModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.TeacherService     = teacherService;
     this.TeacherModelMapper = teacherModelMapper;
     this.BulkInsertLimit    = 250;
     this.MaxLimit           = 1000;
     this.DefaultLimit       = 250;
 }
示例#33
0
 public AdminController(IClientService clientService, IBranchService branchService,
                        IBatchService batchService,
                        ITeacherService teacherService,
                        IStudentService studentService,
                        ILogger logger, IAspNetRoles aspNetRolesService, IApiService apiService)
 {
     _clientService      = clientService;
     _branchService      = branchService;
     _batchService       = batchService;
     _teacherService     = teacherService;
     _studentService     = studentService;
     _logger             = logger;
     _aspNetRolesService = aspNetRolesService;
     _apiService         = apiService;
 }
示例#34
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;
        }
示例#35
0
 public NetworkFacade()
 {
     proxy = channelFactory.CreateChannel();
 }
 public TeacherController(ILogger logger , TeacherService teacherService , IAccountService accService)
 {
     this.logger = logger;
     this.teacherService = teacherService;
     this.accountService = accService;
 }
示例#37
0
 public CoursesController(ICourseService cs, ITeacherService ts)
 {
     courseService = cs;
     teacherService = ts;
 }
 public TeachersController(ITeacherService teacherService)
 {
     this.teacherService = teacherService;
 }
示例#39
0
 public TeachersController(ITeacherService ts, IDepartmentService ds, IPositionService ps)
 {
     teacherService = ts;
     departmentService = ds;
     positionService = ps;
 }