public AuthController(IHttpContextAccessor httpContextAccessor,
                       IPeopleService peopleService, ICourseMemberService courseMemberService, ICourseTestService courseTestService)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.peopleService       = peopleService;
     this.courseMemberService = courseMemberService;
     this.courseTestService   = courseTestService;
 }
Exemplo n.º 2
0
 public TestSubmissionsController(ICourseTestService courseTestService, ICourseMemberService courseMemberService, IHttpContextAccessor httpContextAccessor,
                                  ITestSubmissionService testSubmissionService)
 {
     this.courseTestService     = courseTestService;
     this.courseMemberService   = courseMemberService;
     this.httpContextAccessor   = httpContextAccessor;
     this.testSubmissionService = testSubmissionService;
     testSubmissionEvaluator    = new TestSubmissionEvaluator();
 }
 public CourseController(ILogger <CourseController> logger, ICourseService courseService, IMaterialService materialService, ISkillService skillService, ICourseTestService courseTestService, IUserService userService, IMapper mapper)
 {
     this.logger            = logger;
     this.courseService     = courseService;
     this.mapper            = mapper;
     this.materialService   = materialService;
     this.skillService      = skillService;
     this.courseTestService = courseTestService;
     this.userService       = userService;
 }
 public CoursePassController(ILogger <CoursePassController> logger, ICourseService courseService, IUserService userService, IMaterialService materialService, ICourseTestService courseTestService, IQuestionService questionService, IMapper mapper)
 {
     this.logger            = logger;
     this.courseService     = courseService;
     this.userService       = userService;
     this.mapper            = mapper;
     this.materialService   = materialService;
     this.courseTestService = courseTestService;
     this.questionService   = questionService;
 }
 public CourseReferenceServiceFactory(ICourseAdminService courseAdminService, ICourseMemberService courseMemberService, ICourseTestService courseTestService,
                                      IFileService fileService, IForumPostService forumPostService, IGradeService gradeService, ITestSubmissionService testSubmissionService, IEnrollmentRequestService enrollmentRequestService)
 {
     dataServices = new Dictionary <EntityType, ICourseReferenceService>
     {
         [EntityType.Course]            = new DummyCourseService(),
         [EntityType.CourseMember]      = courseMemberService,
         [EntityType.CourseAdmin]       = courseAdminService,
         [EntityType.CourseTest]        = courseTestService,
         [EntityType.CourseFile]        = fileService,
         [EntityType.ForumPost]         = forumPostService,
         [EntityType.Grade]             = gradeService,
         [EntityType.TestSubmission]    = testSubmissionService,
         [EntityType.EnrollmentRequest] = enrollmentRequestService
     };
 }
Exemplo n.º 6
0
 public CourseTestsController(ICourseTestService courseTestService, ITestSubmissionService testSubmissionService)
 {
     this.courseTestService     = courseTestService;
     this.testSubmissionService = testSubmissionService;
     questionValidator          = new QuestionValidator();
 }
Exemplo n.º 7
0
 public TestController(ICourseTestService testService, IMapper mapper)
 {
     this.testService = testService;
     this.mapper      = mapper;
 }
Exemplo n.º 8
0
 public TestController(ILogger <TestController> logger, ICourseTestService testService, IMapper mapper)
 {
     this.logger      = logger;
     this.testService = testService;
     this.mapper      = mapper;
 }