public LmsUserManager(ILmsUserRepository lmsUserRepository, IGradeLevelRepository gradeLevelRepository, 
     ICourseRepository courseRepository)
 {
     _lmsUserRepository = lmsUserRepository;
     _gradeLevelRepository = gradeLevelRepository;
     _courseRepository = courseRepository;
 }
        // Constructor Injection
        public CourseAppService(ICourseRepository rep)
        {
            if (rep == null)
                throw new ArgumentNullException("rep");

            _rep = rep;
        }
 public CourseController(ICourseRepository courseRepository, IDepartmentRepository departmentRepository,
     IMapper mapper)
 {
     _courseRepository = courseRepository;
     _departmentRepository = departmentRepository;
     _mapper = mapper;
 }
Exemple #4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CourseService" /> class.
 /// </summary>
 /// <param name="courseRepository">The course repository.</param>
 /// <param name="courseOfferingRepository"></param>
 /// <param name="studentRepository"></param>
 public CourseService(ICourseRepository courseRepository, ICourseOfferingRepository courseOfferingRepository,
     IStudentRepository studentRepository)
 {
     _courseRepository = courseRepository;
     _courseOfferingRepository = courseOfferingRepository;
     _studentRepository = studentRepository;
 }
Exemple #5
0
        public CurriculaController(ICurriculumRepository CurriculaRepo, ICourseRepository CourseRepo)
        {
            this.CurriculaRepo = CurriculaRepo;
            this.CourseRepo = CourseRepo;

            CurriculaRepo.SetContext(db);
        }
 public InstructorController(IInstructorRepository instructorRepository,
     ICourseRepository courseRepository, IDepartmentRepository departmentRepository, IMapper mapper)
 {
     _instructorRepository = instructorRepository;
     _courseRepository = courseRepository;
     _departmentRepository = departmentRepository;
     _mapper = mapper;
 }
 public CourseManangementServices(ICourseRepository courseRepository, ILogger logger)
 {
     if (courseRepository == null)
         throw new ArgumentNullException("courseRepository");
     if (logger == null)
         throw new ArgumentNullException("logger");
     this._courseRepository = courseRepository;
     this._logger = logger;
 }
 public HomeworkController(IHomeworkRepository homeworkRepository,
     IAcademicYearDetailsRepository academicYearDetailRepository, ICourseRepository courseRepository, ITeacherRepository teacherRepository)
 {
     _homeworkRepository = homeworkRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
     _courseRepository = courseRepository;
     _academicYearDetailRepository = academicYearDetailRepository;
     _teacherRepository = teacherRepository;
 }
 public GameController(
     IGameRepository gameRepository, 
     ICourseRepository courseRepository, 
     IUserRepository userRepository)
 {
     this.gameRepository = gameRepository;
     this.courseRepository = courseRepository;
     this.userRepository = userRepository;
 }
Exemple #10
0
        public CourseController(ICourseRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.CourseRepository = repository;
        }
 public AcademicYearDetailsController(IAcademicYearDetailsRepository academicYearDetailsRepository,
     ICourseRepository courseRepository, ITeacherRepository teacherRepository,
     IAcademicYearRepository academicYearRepository)
 {
     _academicYearDetailsRepository = academicYearDetailsRepository;
     _courseRepository = courseRepository;
     _teacherRepository = teacherRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
 public CourseController(IGenericRepository genericRepository, 
     IMapper<Course, IndexModel> courseToIndexModelMapper, 
     IMapper<CreateModel, Course> createModelToCourseMapper, IMapper<ParentCourse, ParentCourseListItemModel> parentCourseToParentCourseListItemModelMapper, ICourseRepository courseRepository)
 {
     _genericRepository = genericRepository;
     _courseToIndexModelMapper = courseToIndexModelMapper;
     _createModelToCourseMapper = createModelToCourseMapper;
     _parentCourseToParentCourseListItemModelMapper = parentCourseToParentCourseListItemModelMapper;
     _courseRepository = courseRepository;
 }
 public QuizService(IModelFactory modelFactory, IQuizRepository quizRepository, IQuizQuestionRepository quizQuestionRepository,
     IQuestionRepository questionRepository, ICourseRepository courseRepository, IQuizPagesRepository quizPagesRepository)
 {
     _modelFactory = modelFactory;
     _quizRepository = quizRepository;
     _quizQuestionRepository = quizQuestionRepository;
     _questionRepository = questionRepository;
     _courseRepository = courseRepository;
     _quizPagesRepository = quizPagesRepository;
 }
Exemple #14
0
 public CourseController(ICourseRepository courseRepository, 
                         IEducationLevelRepository areaRepository,
                         IPensumRepository pensumRepository)
 {
     if (courseRepository == null) throw new ArgumentNullException("courseRepository");
     if (areaRepository == null) throw new ArgumentNullException("areaRepository");
     _courseRepository = courseRepository;
     _areaRepository = areaRepository;
     _pensumRepository = pensumRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
        public FatecService(
			ICourseRepository cursoRepository,
			IFatecRepository fatecRepository,
			ICacheManager cacheStrategy,
			IDisciplineService disciplineService)
        {
            _courseRepository = cursoRepository;
            _fatecRepository = fatecRepository;
            _cacheManager = cacheStrategy;
            _disciplineService = disciplineService;
        }
Exemple #16
0
        public CourseController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.CourseRepository = new Extems.Academic.DataAccess.Course
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
 public HomeworkController(IHomeworkRepository homeworkRepository,
     IAcademicYearDetailsRepository academicYearDetailRepository, IAcademicYearRepository academicYearRepository,
     IGradeRepository gradeRepository, ICourseRepository courseRepository, IStudentRepository studentRepository,
     IEnrollRepository enrollsRepository, ISessionManagementRepository sessionManagementRepository, 
     ISecurityRepository securityRepository, IParentRepository parentRepository)
 {
     _homeworkRepository = homeworkRepository;
     _academicYearRepository = academicYearRepository;
     _gradeRepository = gradeRepository;
     _courseRepository = courseRepository;
     _academicYearDetailRepository = academicYearDetailRepository;
     StudentRepository = studentRepository;
     EnrollsRepository = enrollsRepository;
     _sessionManagementRepository = sessionManagementRepository;
     SecurityRepository = securityRepository;
     _parentRepository = parentRepository;
 }
Exemple #18
0
 public CourseDomain(IDatabaseUnitOfWork databaseUnitOfWork, IStudentRepository studentRepository, ICourseRepository courseRepository, ILecturerRepository lecturerRepository)
 {
     DatabaseUnitOfWork = databaseUnitOfWork;
     StudentRepository  = studentRepository;
     CourseRepository   = courseRepository;
     LecturerRepository = lecturerRepository;
 }
Exemple #19
0
 public void CourseRepositoryTest()
 {
     cRep = new CourseRepository(dbContext.Object);
     Assert.IsNotNull(cRep);
 }
 public CourseService(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
 public CoursesController()
 {
     this.courseRepository = new CourseRepository();
 }
Exemple #22
0
 public ModuleProvider(ICourseRepository courseRepo, IModuleRepository moduleRepo)
 {
     _courseRepo = courseRepo;
     _moduleRepo = moduleRepo;
 }
Exemple #23
0
 private CourseService CreateCourseService(ICourseRepository courseRepository)
 {
     return(new CourseService(courseRepository));
 }
Exemple #24
0
 public CourseService(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
 }
 public CustomCoursesController(ICourseRepository repository)
 {
     _repository = repository;
 }
Exemple #26
0
 public CourseService()
 {
     courseRepository = new CourseRepository(new ContosoDbContext());
 }
Exemple #27
0
 public CourseCreator(ICourseRepository repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }
Exemple #28
0
 public CourseController(ICourseRepository repository)
 {
     _repository = repository;
 }
 public CourseController(ICourseRepository courseService)
 {
     _courseService = courseService;
 }
Exemple #30
0
 public ObjectiveStudentController(IExScoreRepository iExScoreRepository, IStudentsRepository iStudentsRepository, IExamRepository iExamRepository, ICourseRepository iCourseRepository, IClazzRepository iClazzRepository, IGradeRepository iGradeRepository, ICCTRepository iCCTRepository, ITeacherRepository iTeacherRepository, IExamDetailRepository iExamDetailRepository, IExamDetailScoreRepository iExamDetailScoreRepository)
 {
     this._iExScoreRepository         = iExScoreRepository;
     this._iStudentsRepository        = iStudentsRepository;
     this._iExamRepository            = iExamRepository;
     this._iCourseRepository          = iCourseRepository;
     this._iClazzRepository           = iClazzRepository;
     this._iGradeRepository           = iGradeRepository;
     this._iCCTRepository             = iCCTRepository;
     this._iTeacherRepository         = iTeacherRepository;
     this._iExamDetailRepository      = iExamDetailRepository;
     this._iExamDetailScoreRepository = iExamDetailScoreRepository;
 }
Exemple #31
0
 public CourseController(ICourseRepository courseRepository, ICategoryCourseRepository categoryCourseRepository)
 {
     this.courseRepository = courseRepository;
     this.categoryCourseRepository = categoryCourseRepository;
 }
 public CourseQueries(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
Exemple #33
0
 public CourseController(ICourseRepository repo) =>
Exemple #34
0
 public WithdrawUserCommandHandler(IUserRepository userRepository, ICourseRepository courseRepository)
 {
     UserRepository   = userRepository;
     CourseRepository = courseRepository;
 }
 public CourseCommandHandler(ICourseRepository courseRepository)
 {
     this._courseRepository = courseRepository;
 }
 public CourseControllerTests(TestingWebAppFactory <Startup> factory)
 {
     _client           = factory.CreateClient();
     _courseRepository = factory.Resolve <ICourseRepository>();
 }
Exemple #37
0
 public CourseController(ICourseRepository courseRepository, ICategoryRepository categoryRepository)
 {
     this.courseRepository   = courseRepository;
     this.categoryRepository = categoryRepository;
 }
Exemple #38
0
 public IndexModel(ICourseRepository CourseRepository, IMapper Mapper)
 {
     this.CourseRepository = CourseRepository;
     this.mapper           = Mapper;
     this.Model            = new CourseIndexVm();
 }
Exemple #39
0
 public EnrollStudentCommandHandler(IUnitOfWork unitOfWork)
 {
     this.unitOfWork   = unitOfWork;
     studentRepository = unitOfWork.StudentRepository;
     courseRepository  = unitOfWork.CourseRepository;
 }
Exemple #40
0
 public CourseController(ICourseRepository courseRepo, IAccountRepository accountRepo, ApplicationDbContext context)
 {
     _courseRepo  = courseRepo;
     _accountRepo = accountRepo;
     _context     = context;
 }
 public CourseFacadeTest()
 {
     _courseRepository = Substitute.For<ICourseRepository>();
     _courseFacade = new CourseFacade(_courseRepository);
 }
Exemple #42
0
 public CourseServices(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
 public CoursesController(ICourseRepository repository)
 {
     this.courseRepository = repository;
 }
Exemple #44
0
 public CoursesController(ICourseRepository courseRepository, IMapper mapper)
 {
     _courseRepository = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
     _mapper           = mapper;
 }
 public HomeController(ICourseRepository Repository)
 {
     if (Repository == null)
         throw new ArgumentNullException("Repository", "No valid UserRepository supplied to FollowersController");
     _repository = Repository;
 }
Exemple #46
0
 public ExScoreController(IExScoreRepository iExScoreRepository, IStudentsRepository iStudentsRepository, IExamRepository iExamRepository, ICourseRepository iCourseRepository, IClazzRepository iClazzRepository, IGradeRepository iGradeRepository, IUser iUser)
 {
     this._iExScoreRepository  = iExScoreRepository;
     this._iStudentsRepository = iStudentsRepository;
     this._iExamRepository     = iExamRepository;
     this._iCourseRepository   = iCourseRepository;
     this._iClazzRepository    = iClazzRepository;
     this._iGradeRepository    = iGradeRepository;
     GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt();
 }
 public EducationLevelController(IEducationLevelRepository areaReposity, ICourseRepository courseRepository)
 {
     _areaReposity = areaReposity;
     _courseRepository = courseRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
 //---------------------------------------------------------------------------------------------------
 static ClubRelationships()
 {
     s_event_repository = new EventRepository();
     s_club_repository = new ClubRepository();
     s_course_repository = new CourseRepository();
 }
Exemple #49
0
 public CourseController()
 {
     this.courseRepository = new CourseRepository();
      this.categoryCourseRepository = new CategoryCourseRepository();
 }
Exemple #50
0
 public CreateModel(IMapper Mapper, IFileHandler FileHandler, IHostingEnvironment HostingEnvironment, ICourseRepository CourseRepository)
 {
     this.mapper             = Mapper;
     this.fileHandler        = FileHandler;
     this.hostingEnvironment = HostingEnvironment;
     this.courseRepository   = CourseRepository;
 }
 public CourseController(ICourseRepository _courseRepository)
 {
     this._courseRepository = _courseRepository;
 }
 public CoursesController(ICourseRepository _db)
 {
     db       = _db;
     _log4net = log4net.LogManager.GetLogger(typeof(CoursesController));
 }
Exemple #53
0
 public ObjectiveController(IExScoreRepository iExScoreRepository, IStudentsRepository iStudentsRepository, IExamRepository iExamRepository, ICourseRepository iCourseRepository, IClazzRepository iClazzRepository, IGradeRepository iGradeRepository, IUser iUser, ICCTRepository iCCTRepository, ITeacherRepository iTeacherRepository, IExamDetailRepository iExamDetailRepository, IExamDetailScoreRepository iExamDetailScoreRepository)
 {
     this._iExScoreRepository         = iExScoreRepository;
     this._iStudentsRepository        = iStudentsRepository;
     this._iExamRepository            = iExamRepository;
     this._iCourseRepository          = iCourseRepository;
     this._iClazzRepository           = iClazzRepository;
     this._iGradeRepository           = iGradeRepository;
     this._iCCTRepository             = iCCTRepository;
     this._iTeacherRepository         = iTeacherRepository;
     this._iExamDetailRepository      = iExamDetailRepository;
     this._iExamDetailScoreRepository = iExamDetailScoreRepository;
     GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt();
 }
Exemple #54
0
 public CourseServices(ICourseRepository courseRepository, IUserRepository userRepository, IComponentRepository componentRepository)
 {
     _courseRepository    = courseRepository;
     _userRepository      = userRepository;
     _componentRepository = componentRepository;
 }
Exemple #55
0
 public CourseService(ICourseRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Exemple #56
0
 public CourseService(ICourseRepository courseRepository)
 {
     this._courseRepository = courseRepository;
 }
 static EventController()
 {
     s_repository = new EventRepository();
     s_course_repository = new CourseRepository();
 }
 public SchoolUnitOfWork(SchoolContext context, IPersonRepository personRepository, ICourseRepository courseRepository)
 {
     this.context          = context;
     this.PersonRepository = personRepository;
     this.CourseRepository = courseRepository;
 }
Exemple #59
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="iCourseRepository"></param>
 public CourseController(ICourseRepository iCourseRepository)
 {
     this._iCourseRepository = iCourseRepository;
 }
 public Handler(IUnitOfWork unitOfWork, IRepository <Instructor> instructorRepository, ICourseRepository courseRepository, INotificationService notificationService, IOptionsMonitor <EnvironmentOptions> environmentOptions)
 {
     _unitOfWork           = unitOfWork;
     _instructorRepository = instructorRepository;
     _courseRepository     = courseRepository;
     _notificationService  = notificationService;
     _environmentOptions   = environmentOptions;
 }