Exemple #1
0
 public CourseController(Lazy<UserManager<ApplicationUser>> userManager, IEntityRepository entityRepository, ICourseService courseService, Lazy<ICertificateService> certificateService)
     : base(userManager)
 {
     _entityRepository = entityRepository;
     _courseService = courseService;
     _certificateService = certificateService;
 }
 public CourseController(ICourseMapper courseMapper, ICourseService courseService,
     IWordSuiteService wordSuiteService)
 {
     _courseMapper = courseMapper;
     _courseService = courseService;
     _wordSuiteService = wordSuiteService;
 }
 public CourseController(ICourseService courseService, IProfileService profileService, ILearningMaterialService learningService)
 {
     _courseService = courseService;
     _profileService = profileService;
     _learningService = learningService;
     _courseServiceExternal = new CourseServiceExternal.CourseServiceClient();
 }
Exemple #4
0
 public ManageCourseController(ICourseService courseService, IEntityRepository entityRepository, IEmailGenerationService emailGenerationService, IMailService mailService)
 {
     _courseService = courseService;
     _entityRepository = entityRepository;
     _emailGenerationService = emailGenerationService;
     _mailService = mailService;
 }
Exemple #5
0
        public SearchController()
        {
            _CourseService = LmsService.FindService<ICourseService>();
            _CurriculmService = LmsService.FindService<ICurriculumService>();
            _UserService = LmsService.FindService<IUserService>();

        }
 //todo  : add Authorize parameters
 public TestController(ITestService tService, ICourseService cService, IProfileService pService, IJournalService jService)
 {
     _testService = tService;
     _courseService = cService;
     _profileService = pService;
     _journalService = jService;
 }
 public ExaminationDatasheetsController(IGroupService gs, ICourseService cs, IAcademicProgressService aps,
     IScheduleService scs)
 {
     groupService = gs;
     courseService = cs;
     academicProgressService = aps;
     scheduleService = scs;
 }
Exemple #8
0
        public Courses(ICourseService courseService,Course course)
        {
            _course = course;
            _courseService = courseService;
            InitializeComponent();

               // dgvList.AutoGenerateColumns = false;
        }
Exemple #9
0
 public RssController(ICourseService courseService, IYearService yearService, ICourseMenuService menuService, IContentManager contentManager, IRepository<PostRecord> postRepo)
 {
     this.contentManager = contentManager;
     this.yearService = yearService;
     this.courseService = courseService;
     this.menuService = menuService;
     this.postRepo = postRepo;
 }
Exemple #10
0
 public DataPreparer(
     IDisciplineStorage disciplineStorage, ICurriculumStorage curriculumStorage, ILmsService lmsService)
 {
     this.disciplineStorage = disciplineStorage;
     this.curriculumStorage = curriculumStorage;
     this.courseService = lmsService.FindService<ICourseService>();
     this.userService = lmsService.FindService<IUserService>();
 }
         public CourseViewModel(IEventAggregator eventAggregator, ICourseService courseService)
        {
            this.eventAggregator = eventAggregator;

            if (courseService.ActiveCourse != null)
            {
                Lessons = courseService.ActiveCourse.Lessons;
            }

            eventAggregator.GetEvent<CourseDetailsReadyEvent>().Subscribe(CourseChanged, ThreadOption.UIThread);
        }
        public ModuleViewModel(IEventAggregator eventAggregator, ICourseService courseService)
        {
            this.eventAggregator = eventAggregator;

            if (courseService.ActiveCourse != null)
            {
                Lessons = courseService.ActiveCourse.Lessons;
            }

            eventAggregator.GetEvent<ModuleSelectedEvent>().Subscribe(ModuleChanged, ThreadOption.UIThread);
        }
 public ClassController(IClassTimeService classTimeService,
     IClassService classService,
     IUserService userService,
     ICourseService courseService,
     IClassTypeService classTypeService)
 {
     _userService = userService;
     _classTypeService = classTypeService;
     _courseService = courseService;
     _classService = classService;
     _classTimeService = classTimeService;
 }
 public CourseMenuController(IContentManager contentManager, IShapeFactory shapeFactory, IRepository<MailSubscriptionRecord> subscriptionRepo, IRepository<PostRecord> postRepo, ICourseService courseService, IYearService yearService, ICourseMenuService menuService, IAuthenticationService authenticationService)
 {
     this.Shape = shapeFactory;
     this.contentManager = contentManager;
     this.subscriptionRepo = subscriptionRepo;
     this.postRepo = postRepo;
     this.yearService = yearService;
     this.courseService = courseService;
     this.menuService = menuService;
     this.authenticationService = authenticationService;
     T = NullLocalizer.Instance;
 }
 public EnrollmentController(IEnrollmentService enrollmentService, IEnrollmentMapper enrollmentMapper,
     IWordSuiteService wordSuiteService, IWordProgressService wordProgressService, IUserForListingMapper userMapper,
     ICourseService courseService, IGroupService groupService)
 {
     _enrollmentService = enrollmentService;
     _enrollmentMapper = enrollmentMapper;
     _wordSuiteService = wordSuiteService;
     _wordProgressService = wordProgressService;
     _userMapper = userMapper;
     _courseService = courseService;
     _groupService = groupService;
 }
 public GroupController(IGroupService groupService, IGroupForListingMapper groupForListingMapper, IEnrollmentService enrollmentService, 
     IWordProgressService wordProgressService, IWordSuiteService wordsuiteService, ICourseService courseService,
     ICourseForGroupMapper courseMapper, IGroupMapper groupMapper)
 {
     _groupService = groupService;
     _groupForListingMapper = groupForListingMapper;
     _enrollmentService = enrollmentService;
     _wordProgressService = wordProgressService;
     _wordsuiteService = wordsuiteService;
     _courseService = courseService;
     _courseMapper = courseMapper;
     _groupMapper = groupMapper;
 }
Exemple #17
0
 public StudyController( IUserContext userContext,
                         ICommentService commentService,
                         ICourseService courseServices, 
                         IFileService fileService,
                         IPostService postService,
                         IUserService userService)
 {
     UserContext = userContext;
     CommentService = commentService;
     CourseService = courseServices;
     FileService = fileService;
     PostService = postService;
     UserService = userService;
 }
        public LessonHostViewModel(IEventAggregator eventAggregator, IRegionManager regionManager, ICourseService courseService )
        {
            this.eventAggregator = eventAggregator;
            this.regionManager = regionManager;
            this.courseService = courseService;

            eventAggregator.GetEvent<LessonSelectedEvent>().Subscribe(
                PrepareLesson, ThreadOption.UIThread);

            eventAggregator.GetEvent<AdvanceContentEvent>().Subscribe(
                PublishNextContent, ThreadOption.UIThread);

            eventAggregator.GetEvent<ActiveContentChangedEvent>().Subscribe(
                UpdateContentView, ThreadOption.UIThread);

            GoBackCommand = new DelegateCommand<object>(GoBack, CanGoBack);

        }
Exemple #19
0
 public BaseController(IUserInfoService _userService, ISaluationService _saluationService, IStateDistrictCityService _statecitydistrictService, ICourseCategoryService _corseCategoryservices, ICourseService _courseServices, IEducationalDetailService _educationalDetailService, IFacultyWorkInfoService _facultyWorkInfoService, IGraduationYearService _graduationYearServive, IProfessionalDetailsService _professionaldetailsservice, IGenericMethodsService _genericMethodsservices, IUserDetailsViewService _userDetailsViewService, IUser_JobPostingService _userJobPostingservice, IEventService _eventServices, INewsRoomService _newsroomService,IDonationService _donationService)
 {
     UserService = _userService;
     SaluationService = _saluationService;
     StatecitydistrictService = _statecitydistrictService;
     CourseCategoryService = _corseCategoryservices;
     CourseServises = _courseServices;
     EducationalDetailService = _educationalDetailService;
     FacultyWorkInfoService = _facultyWorkInfoService;
     Graduationyearservice = _graduationYearServive;
     Professionaldetailsservice = _professionaldetailsservice;
     GenericMethodsservices = _genericMethodsservices;
     UserDetailsViewService = _userDetailsViewService;
     UserJobPostingservice = _userJobPostingservice;
     EventServices = _eventServices;
     NewsroomService = _newsroomService;
     DonationService = _donationService;
 }
Exemple #20
0
 public PostHandler(ICourseMenuService menuService, IYearService yearService, ICourseService courseService, IRepository<MailSubscriptionRecord> mailRepo, IMembershipService membershipService, IMessageManager messageManager, IRepository<PostRecord> postRepo, IHttpContextAccessor httpContextAccessor)
 {
     this.courseService = courseService;
     this.yearService = yearService;
     this.menuService = menuService;
     this.httpContextAccessor = httpContextAccessor;
     this.postRepo = postRepo;
     this.mailRepo = mailRepo;
     this.messageManager = messageManager;
     this.membershipService = membershipService;
     OnPublished<RoutePart>((context, part) =>
     {
         var item = postRepo.Fetch(x => x.ContentId == part.ContentItem.Id).FirstOrDefault();
         if (item != null)
         {
             var menu = menuService.Get(item.Menu.Id);
             sendEmail(menu.Id, part.ContentItem);
         }
         
     });
 }
 public CoursesController(ICourseService service)
 {
     this._service = service;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="CourseOfferingViewModelFactory" /> class.
 /// </summary>
 /// <param name="viewModel">The view model.</param>
 /// <param name="courseService">The course service.</param>
 public CourseOfferingViewModelFactory(CourseOfferingViewModel viewModel, ICourseService courseService)
 {
     _viewModel = viewModel;
     _courseService = courseService;
 }
 public DetailsModel(ICourseService courseService)
 {
     _courseService = courseService;
 }
Exemple #24
0
 public CourseController(ICourseService _CourseService)
 {
     this._CourseService = _CourseService;
 }
 public DownloadController(ICourseService courseService, IStaticFilesService staticFilesService)
 {
     _courseService = courseService;
     _staticFilesService = staticFilesService;
 }
 public CoursesController(ICourseService courseService)
 {
     this.courseService = courseService;
 }
 public HomeController(ISceneService sceneService, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, ILogger <LoginModel> logger, ICourseService courseService, IUserService userService, IVRBackgroundService VRBackgroundService, ICourseUserRelationService courseUserRelationService)
 {
     _logger                    = logger;
     _signInManager             = signInManager;
     _userManager               = userManager;
     _courseService             = courseService;
     _userService               = userService;
     _VRBackgroundService       = VRBackgroundService;
     _courseUserRelationService = courseUserRelationService;
     _sceneService              = sceneService;
 }
Exemple #28
0
 public SeminarController(ITopicService topicService, ISeminarService seminarService, ISeminarGroupService seminarGroupService, IUserService userService, ICourseService courseService, JwtHeader header)
 {
     _topicService        = topicService;
     _seminarService      = seminarService;
     _seminarGroupService = seminarGroupService;
     _userService         = userService;
     _courseService       = courseService;
     _header = header;
 }
 public CourseOfferingController(ICourseService courseService)
 {
     _courseService = courseService;
 }
 /// <summary>
 /// Constructor with specified ICourseService, IMapper, ILogger
 /// </summary>
 /// <param name="courseService">Object that realize course service contract</param>
 /// <param name="mapper">Object that realize mapper contract</param>
 /// <param name="logger">Object that realize logger contract</param>
 public CourseController(ICourseService courseService, IMapper mapper, ILogger <CourseController> logger)
 {
     _courseService = courseService;
     _mapper        = mapper;
     _logger        = logger;
 }
        public async Task TestStartTest()
        {
            TestingContext testingContext = new TestingContext();

            InitTestingContext(testingContext);

            ICourseService courseService = testingContext.GetService <CourseService>();

            testingContext.DependencyMap[typeof(ICourseService)] = courseService;

            ICourseInstanceService courseInstanceService = testingContext.GetService <CourseInstanceService>();


            var courses = await courseService.GetCoursesAsync(0);

            int courseId = courses.Data.Select(x => x.Id).First();

            //Act
            CourseInstanceDto result = await courseInstanceService.StartCourseAsync(courseId);

            Assert.True(result.IdCourseInstance > 0);
            Assert.True(result.IdCourse == courseId);
            Assert.True(result.IdCourseInstanceQuestion > 0);
            Assert.True(result.NumQuestionsAlreadyAsked == 0);
            Assert.True(result.NumQuestionsTotal > 0);

            CourseInstanceDto result2 = await courseInstanceService.NextQuestion(result.IdCourseInstance);

            Assert.True(result2.IdCourse == courseId);
            Assert.True(result2.IdCourseInstanceQuestion > 0);
            Assert.True(result2.NumQuestionsAlreadyAsked == 1);
            Assert.True(result2.NumQuestionsTotal > 0);

            CourseInstanceDto result3 = await courseInstanceService.NextQuestion(result.IdCourseInstance);

            Assert.True(result3.IdCourse == courseId);
            Assert.True(result3.IdCourseInstanceQuestion > 0);
            Assert.True(result3.NumQuestionsAlreadyAsked == 2);
            Assert.True(result3.NumQuestionsTotal > 0);

            QuestionToAskDto result4 = await courseInstanceService.GetQuestionToAskAsync(result.IdCourseInstanceQuestion);

            Assert.Equal(QuestionType.MultipleChoice, result4.QuestionType);

            QuestionAnswerDto answer = new QuestionAnswerDto();

            answer.IdCourseInstanceQuestion = result.IdCourseInstanceQuestion;
            answer.Answers.Add(false);
            answer.Answers.Add(true);
            answer.Answers.Add(false);
            answer.Answers.Add(true);

            QuestionDto result5 = await courseInstanceService.AnswerQuestionAndGetSolutionAsync(answer);

            Assert.True(result5.Explanation != null);
            Assert.Equal(4, result5.Options.Count);
            Assert.True(result5.Options[1].IsTrue);
            Assert.True(result5.Options[3].IsTrue);


            CourseInstanceDto result6 = await courseInstanceService.AnswerQuestionAndGetNextQuestionAsync(answer);

            Assert.True(result6.AnsweredCorrectly);
            Assert.True(result6.Done);
            Assert.Equal(3, result6.NumQuestionsAlreadyAsked);
            Assert.Equal(3, result6.NumQuestionsTotal);
        }
 public InstructorController(IInstructorService instructorService, ICourseService courseService)
 {
     _instructorService = instructorService;
     _courseService     = courseService;
 }
 public HomeController(IUserService users, ICourseService courses)
 {
     this.users   = users;
     this.courses = courses;
 }
 public PeopleController(IHttpContextAccessor httpContextAccessor, IPeopleService peopleService, ICourseService courseService)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.peopleService       = peopleService;
     this.courseService       = courseService;
 }
 public CourseController(ICourseService courseService, IMapper mapper)
 {
     _courseService = courseService;
     Mapper = mapper;
 }
Exemple #36
0
 public CourseController(ICourseService courseService)
 {
     _courseService = courseService;
 }
Exemple #37
0
 public ManageSectionController(ICourseService courseService, IEntityRepository entityRepository, Lazy<IUploadService> uploadService)
 {
     _courseService = courseService;
     _entityRepository = entityRepository;
     _uploadService = uploadService;
 }
 public CoursesController(ICourseService courseService, IMapper mapper)
 {
     this.courseService = courseService;
     this.mapper        = mapper;
 }
Exemple #39
0
 public GroupController(IGroupService groupService, IGroupForListingMapper groupForListingMapper, IEnrollmentService enrollmentService,
                        IWordProgressService wordProgressService, IWordSuiteService wordsuiteService, ICourseService courseService,
                        ICourseForGroupMapper courseMapper, IGroupMapper groupMapper)
 {
     _groupService          = groupService;
     _groupForListingMapper = groupForListingMapper;
     _enrollmentService     = enrollmentService;
     _wordProgressService   = wordProgressService;
     _wordsuiteService      = wordsuiteService;
     _courseService         = courseService;
     _courseMapper          = courseMapper;
     _groupMapper           = groupMapper;
 }
Exemple #40
0
 // GET: Courses
 public async Task <IActionResult> Index([FromServices] ICourseService service)
 {
     return(View($"{_viewFolder}Index.cshtml", await service.ListAllCoursesAsync()));
 }
 public CourseGridController(ICourseService courses)
 {
     this.courses = courses;
 }
Exemple #42
0
        // GET: Courses/Create
        public async Task <IActionResult> Create([FromServices] ICourseService service)
        {
            await PopulateDepartmentsDropDownListAsync(service);

            return(View($"{_viewFolder}Create.cshtml"));
        }
 public CoursesControllerTests()
 {
     _fakeCourseService = A.Fake <ICourseService>();
     _fakeMapper        = A.Fake <IMapper>();
 }
Exemple #44
0
 public CourseController(ICourseService service)
 {
     _service = service;
 }
 public TrainerController(ITrainerService trainers, ICourseService courses, UserManager <User> userManager)
 {
     this.trainers    = trainers;
     this.courses     = courses;
     this.userManager = userManager;
 }
Exemple #46
0
 public CourseController(ICourseService courseService, IIdentityService ıdentityService)
 {
     _courseService   = courseService;
     _ıdentityService = ıdentityService;
 }
 public ThemeController(ICourseService service)
 {
     this.service = service;
 }
Exemple #48
0
 public CourseController(ICourseService courseService)
 {
     _courseService = courseService;
 }
 /// <summary>
 /// Course Controller
 /// </summary>
 public CourseController(ICourseService service) : base(service)
 {
 }
        public async Task SignUpStudent_Input_Null()
        {
            ICourseService courseService = Services.GetService <ICourseService>();

            await courseService.SignUpStudent(null);
        }
Exemple #51
0
 public CourseController(IUserService userService, ICourseService coursesService) : base(userService)
 {
     _coursesService = coursesService;
 }
Exemple #52
0
 public CourseController()
 {
     Service = new CourseService(new ModelStateWrapper(this.ModelState), new CourseRepository());
 }
 public ShoutBoxController(ICourseService courseService)
 {
     _courseService = courseService;
 }
 public EditEpisodeModel(ICourseService courseService)
 {
     _courseService = courseService;
 }
Exemple #55
0
 public HomeController(ICourseService courseService) => _courseService = courseService;
Exemple #56
0
 public EnrollmentsController(IEnrollmentService enrollmentService, IStudentService studentService, ICourseService courseService, IMapper mapper)
 {
     this.enrollmentService = enrollmentService;
     this.studentService    = studentService;
     this.courseService     = courseService;
     this.mapper            = mapper;
 }
Exemple #57
0
 public HomeController(ICourseService courseService, ICategoryService categoryService)
 {
     this.courseService = courseService;
     this.categoryService = categoryService;
 }
Exemple #58
0
 public UserService(IUserDao userDao, ICourseService courseService)
 {
     _userDao       = userDao;
     _courseService = courseService;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="StudentController" /> class.
 /// </summary>
 /// <param name="courseService">The course service.</param>
 public StudentController(ICourseService courseService)
 {
     _courseService = courseService;
 }
Exemple #60
0
 public SearchController()
 {
     _CourseService    = LmsService.FindService <ICourseService>();
     _CurriculmService = LmsService.FindService <ICurriculumService>();
     _UserService      = LmsService.FindService <IUserService>();
 }