Esempio n. 1
0
 public SubmissionMapper(IAssignmentMapper assignmentMapper, IStudentMapper studentMapper, IStudentService studentService, IAssignmentService assignmentService)
 {
     _iAssignmentMapper  = assignmentMapper;
     _iStudentMapper     = studentMapper;
     _iStudentService    = studentService;
     _iAssignmentService = assignmentService;
 }
Esempio n. 2
0
 public void Setup()
 {
     this._student            = StudentTestUtils.GetStudent();
     this._studentDetailsDto  = StudentTestUtils.GetStudentDetailsDto(this._student.Id);
     this._studentCreationDto = StudentTestUtils.GetStudentCreationDto();
     this._studentMapper      = new StudentMapper();
 }
Esempio n. 3
0
 public void Cleanup()
 {
     this._student            = null;
     this._studentDetailsDto  = null;
     this._studentCreationDto = null;
     this._studentMapper      = null;
 }
Esempio n. 4
0
 public AttendanceMapper(ILaboratoryMapper laboratoryMapper, IStudentMapper studentMapper, IStudentService studentService, ILaboratoryService laboratoryService)
 {
     _iLaboratoryMapper  = laboratoryMapper;
     _iStudentMapper     = studentMapper;
     _iStudentService    = studentService;
     _iLaboratoryService = laboratoryService;
 }
Esempio n. 5
0
        public AdminService(
            ICompanyRepository cathedraRepository,
            ISubjectRepository subjectRepository,
            ITeacherRepository teacherRepository,
            IStudentRepository studentRepository,
            ICompanyMapper cathedraMapper,
            ISubjectMapper subjectMapper,
            ITeacherMapper teacherMapper,
            IStudentMapper studentMapper,
            IAccountMapper accountMapper,
            IDateParseHelper dateParseHelper,
            IEmailProvider emailProvider,
            UserManager <ApplicationUser> userManager,
            SignInManager <ApplicationUser> signInManager)
        {
            _companyRepository = cathedraRepository;
            _subjectRepository = subjectRepository;
            _teacherRepository = teacherRepository;
            _studentRepository = studentRepository;

            _cathedraMapper = cathedraMapper;
            _subjectMapper  = subjectMapper;
            _teacherMapper  = teacherMapper;
            _studentMapper  = studentMapper;
            _accountMapper  = accountMapper;

            _dateParseHelper = dateParseHelper;

            _emailProvider = emailProvider;

            _userManager   = userManager;
            _signInManager = signInManager;
        }
Esempio n. 6
0
 public UserController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager,
                       Messages messages, IExerciseMapper exerciseMapper, IStudentMapper studentMapper)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _messages       = messages;
     _exerciseMapper = exerciseMapper;
     _studentMapper  = studentMapper;
 }
Esempio n. 7
0
 public StudentController(PeSportsTrackingContext context,
                          IChartDataService chartDataService,
                          Messages messages,
                          IStudentMapper studentMapper)
 {
     _context          = context;
     _chartDataService = chartDataService;
     _messages         = messages;
     _studentMapper    = studentMapper;
 }
Esempio n. 8
0
 public AdminController(IUrlHelperFactory urlHelperFactory,
                        IActionContextAccessor actionContextAccessor,
                        ISecureTokenGenerator secureTokenGenerator,
                        Messages messages, IStudentMapper studentMapper)
 {
     _secureTokenGenerator = secureTokenGenerator;
     _messages             = messages;
     _studentMapper        = studentMapper;
     _urlHelper            = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
 }
Esempio n. 9
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();
 }
 public StudentController(IUnitOfWork uow, IStudentMapper studentMapper)
 {
     unitOfWork        = uow;
     studentRepository = uow.StudentRepository;
     mapper            = studentMapper;
 }
Esempio n. 11
0
 public SchoolController(SchoolContext context, IStudentMapper studentMapper)
 {
     _context       = context;
     _studentMapper = studentMapper;
 }
Esempio n. 12
0
 public StudentService(IStudentRepository iStudentRepository, IStudentMapper iStudentMapper)
 {
     _iStudentRepository = iStudentRepository;
     _iStudentMapper     = iStudentMapper;
 }
Esempio n. 13
0
 public StudController(IStudentMapper mapper)
 {
     _mapper = mapper;
 }
Esempio n. 14
0
 public StudentService(IReadRepository readRepository, IWriteRepository writeRepository, IStudentMapper studentMapper)
 {
     this.writeRepository = writeRepository ?? throw new ArgumentNullException();
     this.readRepository  = readRepository ?? throw new ArgumentNullException();
     this.studentMapper   = studentMapper ?? throw new ArgumentNullException();
 }