public SchoolController(ICoursesService courses, IUsersService users, ICourseObjectivesService objectives, ILessonsService lessons)
 {
     this.courses = courses;
     this.users = users;
     this.lessons = lessons;
     this.objectives = objectives;
 }
Exemplo n.º 2
0
 public CoursesController(
     ICoursesRepository coursesRepository,
     ICoursesService coursesService)
 {
     _coursesRepository = coursesRepository;
     _coursesService    = coursesService;
 }
        void refreshData()
        {
            _coursesService = _serviceLocator.GetCoursesService();
            Lecture lec = _coursesService.GetLectureById(_selectedLecture.Id);

            lstAttended.Items.Clear();
            foreach (var attendance in lec.Attendances)
            {
                lstAttended.Items.Add(new ListViewItem(new string[] {
                    attendance.Student.Id.ToString(),
                    attendance.Student.Number,
                    attendance.Student.Name,
                    attendance.Time.ToString("hh:mm:ss")
                }));
            }

            lstApsent.Items.Clear();
            foreach (var student in lec.StudentsApsent)
            {
                lstApsent.Items.Add(new ListViewItem(new string[] {
                    student.Id.ToString(),
                    student.Number,
                    student.Name
                }));
            }
        }
Exemplo n.º 4
0
 public ExamsController(IExamsService examsService, IResultsService resultsService, ICoursesService coursesService, UserManager <ApplicationUser> userManager)
 {
     this.examsService   = examsService;
     this.resultsService = resultsService;
     this.coursesService = coursesService;
     this.userManager    = userManager;
 }
Exemplo n.º 5
0
 public AttendanceController(
     IAttendanceService attendanceService,
     ICoursesService coursesService)
 {
     _attendanceService = attendanceService;
     _coursesService    = coursesService;
 }
 public PostsController(IPostsService postsService, ICoursesService coursesService, ICommentsService commentsService, UserManager <ApplicationUser> userManager)
 {
     this.postsService    = postsService;
     this.coursesService  = coursesService;
     this.commentsService = commentsService;
     this.userManager     = userManager;
 }
 public AdminWikiPageContentApiController(IWikiContentService wikiContentService,
                                          ICoursesService coursesService
                                          )
 {
     this._wikiContentService = wikiContentService;
     this._coursesService     = coursesService;
 }
Exemplo n.º 8
0
 public CourseController(
     ICoursesService coursesService,
     UserManager <ApplicationUser> userManager)
 {
     this.coursesService = coursesService;
     this.userManager    = userManager;
 }
Exemplo n.º 9
0
 public CoachController(
     ICoachService coachService,
     ICoursesService coursesService)
 {
     _coachService   = coachService;
     _coursesService = coursesService;
 }
Exemplo n.º 10
0
 public LectionsController(ILectionsService lectionsService, IMyCoursesService myCoursesService, UserManager <ApplicationUser> userManager, ICoursesService coursesService)
 {
     this.lectionsService  = lectionsService;
     this.myCoursesService = myCoursesService;
     this.userManager      = userManager;
     this.coursesService   = coursesService;
 }
Exemplo n.º 11
0
 public DataIntegrityManager()
 {
     _connectivityService = FreshIOC.Container.Resolve <IConnectivityService>();
     _courseService       = FreshIOC.Container.Resolve <ICoursesService>();
     _courseRepository    = FreshIOC.Container.Resolve <ICourseRepository>();
     _courseManager       = FreshIOC.Container.Resolve <ICourseManager>();;
 }
Exemplo n.º 12
0
        private void refreshForm()
        {
            _usersService   = _serviceLocator.GetUsersService();
            _coursesService = _serviceLocator.GetCoursesService();
            lstCourses.Items.Clear();
            var student = (Student)(_usersService.GetUserById(_authManager.GetLoggedInUser().Id));

            foreach (var course in _coursesService.GetCoursesForStudent(student.Id))
            {
                var item = new ListViewItem(new string[] {
                    course.Id.ToString(),
                    course.Name,
                    course.Instructor.Name,
                    student.GetApsentForCourse(course.Id).Count().ToString(),
                });
                item.Tag = course;
                lstCourses.Items.Add(item);
            }
            var activeLecture = _coursesService.GetActiveLectureForStudent(student.Id);

            if (activeLecture != null)
            {
                btnCheckin.Enabled = true;
                lblCheckin.Text    = "Lecture: " + activeLecture.Course.Name + " is currantly being held!";
            }
            else
            {
                btnCheckin.Enabled = false;;
                lblCheckin.Text    = "No Active Lectures At The Moment!";
            }
        }
 public CourseController(
     ICoursesService coursesService,
     ITeachersService teachersService,
     ISubjectsService subjectsService,
     ISubjectTeachersService subjectTeachersService,
     ICourseSubjectsService courseSubjectsService,
     ICourseSubjectTeacherService courseSubjectTeacherService,
     IStudentSubjectsService studentSubjectsService,
     IAttendancesService attendancesService,
     IGradeService gradeService,
     ApplicationDbContext db,
     UserManager <ApplicationUser> userManager)
 {
     this.coursesService              = coursesService;
     this.teachersService             = teachersService;
     this.subjectsService             = subjectsService;
     this.subjectTeachersService      = subjectTeachersService;
     this.courseSubjectsService       = courseSubjectsService;
     this.courseSubjectTeacherService = courseSubjectTeacherService;
     this.studentSubjectsService      = studentSubjectsService;
     this.attendancesService          = attendancesService;
     this.gradeService = gradeService;
     this.db           = db;
     this.userManager  = userManager;
 }
 public SchoolController(ICoursesService courses, IUsersService users, ICourseObjectivesService objectives, ILessonsService lessons)
 {
     this.courses    = courses;
     this.users      = users;
     this.lessons    = lessons;
     this.objectives = objectives;
 }
 public SubscriptionsController(ISubscriptionsService subscriptions, ICoursesService courses, IUserService users, ICoursesContentService coursesContent)
 {
     _subscriptions  = subscriptions;
     _courses        = courses;
     _users          = users;
     _coursesContent = coursesContent;
 }
Exemplo n.º 16
0
 public DashboardController(ISettingsService settingsService, IReportsService reportsService, ICoursesService coursesService, UserManager <ApplicationUser> userManager)
 {
     this.settingsService = settingsService;
     this.reportsService  = reportsService;
     this.coursesService  = coursesService;
     this.userManager     = userManager;
 }
Exemplo n.º 17
0
 public CertificatesService(IRepository <Certificate> certificates, IRandomProvider random, IUserService users, ICoursesService courses, ICertificateGenerationInfoProvider generationInfoProvider)
 {
     _certificates           = certificates;
     _random                 = random;
     _users                  = users;
     _courses                = courses;
     _generationInfoProvider = generationInfoProvider;
 }
Exemplo n.º 18
0
 public CoursesController(ILogger logger,
                          ICoursesService coursesService,
                          IQueueService queueService)
 {
     _logger         = logger;
     _coursesService = coursesService;
     _queueService   = queueService;
 }
Exemplo n.º 19
0
 public StudentController(UserManager <SapIdentityUser> userManager, IStudentsService studentsService, IPersonsService personsService, IDepartmentsService departmentsService, IDepartmentPersonsService departmentPersonsService, ICoursesService coursesService) : base(userManager, null, null)
 {
     _studentsService          = studentsService;
     _personsService           = personsService;
     _departmentsService       = departmentsService;
     _departmentPersonsService = departmentPersonsService;
     _coursesService           = coursesService;
 }
Exemplo n.º 20
0
 public CourseController(ICoursesService courses, IUmbracoMapper mapper, ISubscriptionsService subscriptions, ILecturesService lectures, IAssessmentsService assessmentsService)
 {
     _courses            = courses;
     _mapper             = mapper;
     _subscriptions      = subscriptions;
     _lectures           = lectures;
     _assessmentsService = assessmentsService;
 }
 public CourseController(IInstructorService instructorService,
                         IDepartmentsService departmentsService,
                         ICoursesService coursesService)
 {
     _instructorService  = instructorService;
     _departmentsService = departmentsService;
     _coursesService     = coursesService;
 }
Exemplo n.º 22
0
 public HomeController(ICategoriesService categoriesService, ICoursesService coursesService, IDistributedCache distributedCache, IMyCoursesService myCoursesService, UserManager <ApplicationUser> userManager)
 {
     this.categoriesService = categoriesService;
     this.coursesService    = coursesService;
     this.distributedCache  = distributedCache;
     this.myCoursesService  = myCoursesService;
     this.userManager       = userManager;
 }
        public CoursesContollerCategoryTests()
        {
            this.db          = new CoursesP2PDbContext(MemoryDatabase.OptionBuilder());
            this.userManager = UserManagerMock.UserManagerMockTest();

            this.coursesService    = new CoursesService(db);
            this.coursesController = new CoursesController(coursesService, reviewService, userManager, null, null);
        }
Exemplo n.º 24
0
 public CoursesController(ICoursesService coursesService,
                          ILogger <CoursesController> logger,
                          IStudentsService studentsService)
 {
     this.coursesService  = coursesService;
     this.logger          = logger;
     this.studentsService = studentsService;
 }
Exemplo n.º 25
0
        public LoginForm(IServiceLocator serviceLocator)
        {
            InitializeComponent();
            _usersService   = serviceLocator.GetUsersService();
            _coursesService = serviceLocator.GetCoursesService();
            _authManager    = serviceLocator.GetAuthenticationManager();

            _serviceLocator = serviceLocator;
        }
 public ActivitiesController(ICoursesService coursesService, ISeminarsService seminarsService,
                             ILaboratoriesService laboratoriesService, ICompanyPresentationsService companiesPresentationsService, IGenericsRepository genericsRepo)
 {
     _coursesService              = coursesService;
     _seminarsService             = seminarsService;
     _laboratoriesService         = laboratoriesService;
     _companyPresentationsService = companiesPresentationsService;
     _genericsRepo = genericsRepo;
 }
 public CoursesController(ICategoriesService categoriesService, ILanguagesService languagesService, ISubcategoriesService subcategoriesService, Cloudinary cloudinary, ICoursesService coursesService, UserManager <ApplicationUser> userManager)
 {
     this.categoriesService    = categoriesService;
     this.languagesService     = languagesService;
     this.subcategoriesService = subcategoriesService;
     this.cloudinary           = cloudinary;
     this.coursesService       = coursesService;
     this.userManager          = userManager;
 }
Exemplo n.º 28
0
 private DataIntegrityManager(ICoursesService courseService,
                              ICourseRepository courseRepository, NsuGo.Definition.Interfaces.DataManagers.ICourseManager courseManager)
 {
     _courseService       = courseService;
     _courseManager       = courseManager;
     _courseRepository    = courseRepository;
     _connectivityService = FreshIOC.Container.Resolve <IConnectivityService>();
     //this.Subscribe<Message>(HandleMessageNotifications);
 }
Exemplo n.º 29
0
 public SemesterCoursesController(IDepartmentsServices DepartmentsServices, ICoursesService coursesService, ISemesterCoursesServices semesterCoursesSevices, ICourseRefServices courseRefServices, ISemesterStudentServices semesterStudentServices, IUsersServices usersServices, ISemStudentCoursesServices semStudentCoursesServices)
 {
     _DepartmentsServices       = DepartmentsServices;
     _coursesService            = coursesService;
     _semesterCoursesSevices    = semesterCoursesSevices;
     _courseRefServices         = courseRefServices;
     _semesterStudentServices   = semesterStudentServices;
     _usersServices             = usersServices;
     _semStudentCoursesServices = semStudentCoursesServices;
 }
Exemplo n.º 30
0
        public CourseValidator(ICoursesService service)
        {
            CascadeMode = CascadeMode.StopOnFirstFailure;

            RuleFor(_ => _.Name).NotNull().MinimumLength(5).WithMessage("Name must be more than 5 characters");

            RuleSet("UpdateCourse", () =>
            {
                RuleFor(_ => _.Id).Must(id => !string.IsNullOrEmpty(id)).WithMessage("Id must not be Empty or null");
            });
        }
 public GradeController(
     ApplicationDbContext db,
     IGradeService gradeService,
     IStudentsService studentsService,
     ICoursesService coursesService)
 {
     this.db              = db;
     this.gradeService    = gradeService;
     this.studentsService = studentsService;
     this.coursesService  = coursesService;
 }
 public HomeController(
     IHomePageService service, 
     ICoursesService courses, 
     ISpecialtiesService specialties, 
     IUserService users)
 {
     this.homeService = service;
     this.coursesService = courses;
     this.specialtiesService = specialties;
     this.usersService = users;
 }
 public HomeController(IArticlesService articles, ICoursesService courses, ISellingItemsService sellingItems)
 {
     this.articles = articles;
     this.courses = courses;
     this.sellingItems = sellingItems;
 }
 public CoursesController(ICoursesService service)
 {
     this.courseService = service;
 }
 public SpecialtiesController(ISpecialtiesService specialtiesService, ICoursesService coursesService)
 {
     this.specialtiesService = specialtiesService;
     this.coursesService = coursesService;
 }
Exemplo n.º 36
0
 public CoursesController(ICoursesService coursesService)
 {
     _coursesService = coursesService;
 }
 public CoursesController(ITestService testService, ICoursesService courseService)
 {
     this.testService = testService;
     this.courseService = courseService;
 }
Exemplo n.º 38
0
 public StudentsController(IStudentsService studentsService, ICoursesService coursesService)
 {
     _studentsService = studentsService;
     _coursesService = coursesService;            
 }
Exemplo n.º 39
0
 //private IUserService _userService;
 public CoursesAPIController(ICoursesService CoursesService/*, IUserService UserService*/)
 {
     _coursesService = CoursesService;
     //_userService = UserService;
 }
Exemplo n.º 40
0
 public CoursesController(ICoursesService coursesService)
 {
     this.courses = coursesService;
 }
Exemplo n.º 41
0
 public CoursesController(ICoursesService courses, ICategoryService categories)
 {
     _courses = courses;
     _categories = categories;
 }
Exemplo n.º 42
0
 public AccountController(ICoursesService courses)
 {
     _courses = courses;
 }
 public CourseController(ICoursesService courses,  IUsersService users)
 {
     this.courses = courses;
     this.users = users;
 }
Exemplo n.º 44
0
 public CoursesController(ICoursesService coursesService, IHtmlSanitizer sanitizer, ICategoryService categories)
 {
     _sanitizer = sanitizer;
     _categories = categories;
     _coursesService = coursesService;
 }