Пример #1
0
 public StudentCourseController(IStudentCourseService studentCourseService, IMapper mapper,
                                IStudentService studentService, ICourseService courseService)
 {
     _studentCourseService = studentCourseService;
     _mapper         = mapper;
     _studentService = studentService;
     _courseService  = courseService;
 }
Пример #2
0
 public StudentCourseController(IStudentService studentService, IStudentCourseService studentCourseService, ICourseService couseService,
                                UserManager <User> userManager)
 {
     _studentService       = studentService;
     _studentCourseService = studentCourseService;
     _couseService         = couseService;
     _userManager          = userManager;
 }
Пример #3
0
 public StudentCoursesController(IStudentCourseService studentCourseService,
                                 ICourseService courseService,
                                 IStudentService studentService)
 {
     StudentCourseService = studentCourseService;
     CourseService        = courseService;
     StudentService       = studentService;
 }
        public CoursesController(
            ICourseService courseService,
            IStudentService studentService,
            IStudentCourseService studentCourseService,
            IMappingProvider mapper,
            UserManager <Student> userManager)
        {
            Guard.WhenArgument(courseService, "Course Service can not be null!").IsNull().Throw();
            Guard.WhenArgument(studentService, "Student Service can not be null!").IsNull().Throw();
            Guard.WhenArgument(studentCourseService, "StudentCourse Service can not be null!").IsNull().Throw();
            Guard.WhenArgument(mapper, "Mapper can not be null!").IsNull().Throw();
            Guard.WhenArgument(userManager, "User Manager").IsNull().Throw();

            this.courseService        = courseService;
            this.studentService       = studentService;
            this.studentCourseService = studentCourseService;
            this.mapper      = mapper;
            this.userManager = userManager;
        }
Пример #5
0
 public CourseController(
     IDateTimeRepository datetimeRepository,
     IRepository2 <Course> courseRepository,
     IRepository2 <PhotoAlbum> photoAlbumRepository,
     IRepository <CourseCategory> courseCategoryRepository,
     ICourseService courseService,
     ICurriculumRepository curriculumRepository,
     IStudentCourseRepository studentCourseRepository,
     IRepository <StudentScore> studentScoreRepository,
     IConfigurationRepository configurationRepository,
     IPhotoAlbumService photoAlbumService,
     IRepository <Photo> photoRepository,
     ICurriculumService curriculumService,
     IStudentCourseService studentCourseService,
     IStudentScoreService studentScoreService,
     IBannerService bannerService,
     IRepository <Banner> bannerRepository,
     IRepository <Handout> handoutRepository,
     IHandoutService handoutService)
 {
     this._datetimeRepository       = datetimeRepository;
     this._courseRepository         = courseRepository;
     this._photoAlbumRepository     = photoAlbumRepository;
     this._courseCategoryRepository = courseCategoryRepository;
     this._courseService            = courseService;
     this._curriculumRepository     = curriculumRepository;
     this._studentCourseRepository  = studentCourseRepository;
     this._studentScoreRepository   = studentScoreRepository;
     this._configurationRepository  = configurationRepository;
     this._photoAlbumService        = photoAlbumService;
     this._photoRepository          = photoRepository;
     this._curriculumService        = curriculumService;
     this._studentCourseService     = studentCourseService;
     this._studentScoreService      = studentScoreService;
     this._bannerService            = bannerService;
     this._bannerRepository         = bannerRepository;
     this._handoutRepository        = handoutRepository;
     this._handoutService           = handoutService;
 }
Пример #6
0
 public ExamService(IReadRepository readRepository, IWriteRepository writeRepository,
                    IExamMapper examMapper,
                    ICourseService courseService,
                    IStudentCourseService studentCourseService,
                    IStudentService studentService,
                    IClassroomAllocationService classroomAllocationService,
                    IClassroomAllocationMapper classroomAllocationMapper,
                    IGradeMapper gradeMapper,
                    IStudentMapper studentMapper,
                    IEmailService emailService)
 {
     this.writeRepository            = writeRepository ?? throw new ArgumentNullException();
     this.readRepository             = readRepository ?? throw new ArgumentNullException();
     this.examMapper                 = examMapper ?? throw new ArgumentNullException();
     this.courseService              = courseService ?? throw new ArgumentNullException();
     this.classroomAllocationMapper  = classroomAllocationMapper ?? throw new ArgumentNullException();
     this.classroomAllocationService = classroomAllocationService ?? throw new ArgumentNullException();
     this.studentCourseService       = studentCourseService ?? throw new ArgumentNullException();
     this.studentService             = studentService ?? throw new ArgumentNullException();
     this.gradeMapper                = gradeMapper ?? throw new ArgumentNullException();
     this.studentMapper              = studentMapper ?? throw new ArgumentNullException();
     this.emailService               = emailService ?? throw new ArgumentNullException();
 }
Пример #7
0
 public StudentCourseController(IStudentCourseService studentCourseService)
 {
     this.studentCourseService = studentCourseService;
 }
Пример #8
0
 public CourseController(ICourseService courseService, IStudentCourseService studentCourseService)
 {
     this.courseService        = courseService;
     this.studentCourseService = studentCourseService;
 }
Пример #9
0
 public EnrollmentController(IStudentCourseService studentCourseService,
                             ICoursesService coursesService)
 {
     _studentCourseService = studentCourseService;
     _coursesService       = coursesService;
 }
Пример #10
0
        private void Initialize()
        {
            this.studentCourseService = new StudentCourseService();

            this.Courses = studentCourseService.GetStudentCourses(User.UserId);
        }
Пример #11
0
 public StudentCourseController(ILogger <StudentCourseController> logger, IStudentCourseService service)
 {
     _logger  = logger;
     _service = service;
 }
 public StudentCourseController(IStudentCourseService _studentCourseService)
 {
     studentCourseService = _studentCourseService;
 }
Пример #13
0
 public StudentCourseController(IStudentCourseService studentCourseService, ILoggerManager loggerManager)
 {
     _studentCourseService = studentCourseService;
     _loggerManager        = loggerManager;
 }
 public StudentsController(IStudentService studentService, IStudentCourseService studentCourseService)
 {
     this.studentService = studentService ?? throw new ArgumentNullException();
     this.studentCourseService = studentCourseService ?? throw new ArgumentNullException();
 }