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

            _rep = rep;
        }
Exemplo n.º 3
0
 public CourseController(ICourseRepository courseRepository, IDepartmentRepository departmentRepository,
     IMapper mapper)
 {
     _courseRepository = courseRepository;
     _departmentRepository = departmentRepository;
     _mapper = mapper;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
        public CurriculaController(ICurriculumRepository CurriculaRepo, ICourseRepository CourseRepo)
        {
            this.CurriculaRepo = CurriculaRepo;
            this.CourseRepo = CourseRepo;

            CurriculaRepo.SetContext(db);
        }
Exemplo n.º 6
0
 public InstructorController(IInstructorRepository instructorRepository,
     ICourseRepository courseRepository, IDepartmentRepository departmentRepository, IMapper mapper)
 {
     _instructorRepository = instructorRepository;
     _courseRepository = courseRepository;
     _departmentRepository = departmentRepository;
     _mapper = mapper;
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 public HomeworkController(IHomeworkRepository homeworkRepository,
     IAcademicYearDetailsRepository academicYearDetailRepository, ICourseRepository courseRepository, ITeacherRepository teacherRepository)
 {
     _homeworkRepository = homeworkRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
     _courseRepository = courseRepository;
     _academicYearDetailRepository = academicYearDetailRepository;
     _teacherRepository = teacherRepository;
 }
Exemplo n.º 9
0
 public GameController(
     IGameRepository gameRepository, 
     ICourseRepository courseRepository, 
     IUserRepository userRepository)
 {
     this.gameRepository = gameRepository;
     this.courseRepository = courseRepository;
     this.userRepository = userRepository;
 }
Exemplo n.º 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);
 }
Exemplo n.º 12
0
 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 15
0
        public FatecService(
			ICourseRepository cursoRepository,
			IFatecRepository fatecRepository,
			ICacheManager cacheStrategy,
			IDisciplineService disciplineService)
        {
            _courseRepository = cursoRepository;
            _fatecRepository = fatecRepository;
            _cacheManager = cacheStrategy;
            _disciplineService = disciplineService;
        }
Exemplo n.º 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
            };
        }
Exemplo n.º 17
0
 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;
 }
Exemplo n.º 18
0
 public CourseDomain(IDatabaseUnitOfWork databaseUnitOfWork, IStudentRepository studentRepository, ICourseRepository courseRepository, ILecturerRepository lecturerRepository)
 {
     DatabaseUnitOfWork = databaseUnitOfWork;
     StudentRepository  = studentRepository;
     CourseRepository   = courseRepository;
     LecturerRepository = lecturerRepository;
 }
Exemplo n.º 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();
 }
Exemplo n.º 22
0
 public ModuleProvider(ICourseRepository courseRepo, IModuleRepository moduleRepo)
 {
     _courseRepo = courseRepo;
     _moduleRepo = moduleRepo;
 }
Exemplo n.º 23
0
 private CourseService CreateCourseService(ICourseRepository courseRepository)
 {
     return(new CourseService(courseRepository));
 }
Exemplo n.º 24
0
 public CourseService(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
 }
Exemplo n.º 25
0
 public CustomCoursesController(ICourseRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 26
0
 public CourseService()
 {
     courseRepository = new CourseRepository(new ContosoDbContext());
 }
Exemplo n.º 27
0
 public CourseCreator(ICourseRepository repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }
Exemplo n.º 28
0
 public CourseController(ICourseRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 29
0
 public CourseController(ICourseRepository courseService)
 {
     _courseService = courseService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 31
0
 public CourseController(ICourseRepository courseRepository, ICategoryCourseRepository categoryCourseRepository)
 {
     this.courseRepository = courseRepository;
     this.categoryCourseRepository = categoryCourseRepository;
 }
Exemplo n.º 32
0
 public CourseQueries(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
Exemplo n.º 33
0
 public CourseController(ICourseRepository repo) =>
Exemplo n.º 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>();
 }
Exemplo n.º 37
0
 public CourseController(ICourseRepository courseRepository, ICategoryRepository categoryRepository)
 {
     this.courseRepository   = courseRepository;
     this.categoryRepository = categoryRepository;
 }
Exemplo n.º 38
0
 public IndexModel(ICourseRepository CourseRepository, IMapper Mapper)
 {
     this.CourseRepository = CourseRepository;
     this.mapper           = Mapper;
     this.Model            = new CourseIndexVm();
 }
Exemplo n.º 39
0
 public EnrollStudentCommandHandler(IUnitOfWork unitOfWork)
 {
     this.unitOfWork   = unitOfWork;
     studentRepository = unitOfWork.StudentRepository;
     courseRepository  = unitOfWork.CourseRepository;
 }
Exemplo n.º 40
0
 public CourseController(ICourseRepository courseRepo, IAccountRepository accountRepo, ApplicationDbContext context)
 {
     _courseRepo  = courseRepo;
     _accountRepo = accountRepo;
     _context     = context;
 }
Exemplo n.º 41
0
 public CourseFacadeTest()
 {
     _courseRepository = Substitute.For<ICourseRepository>();
     _courseFacade = new CourseFacade(_courseRepository);
 }
Exemplo n.º 42
0
 public CourseServices(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
 public CoursesController(ICourseRepository repository)
 {
     this.courseRepository = repository;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
 }
Exemplo n.º 47
0
 public EducationLevelController(IEducationLevelRepository areaReposity, ICourseRepository courseRepository)
 {
     _areaReposity = areaReposity;
     _courseRepository = courseRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
Exemplo n.º 48
0
 //---------------------------------------------------------------------------------------------------
 static ClubRelationships()
 {
     s_event_repository = new EventRepository();
     s_club_repository = new ClubRepository();
     s_course_repository = new CourseRepository();
 }
Exemplo n.º 49
0
 public CourseController()
 {
     this.courseRepository = new CourseRepository();
      this.categoryCourseRepository = new CategoryCourseRepository();
 }
Exemplo n.º 50
0
 public CreateModel(IMapper Mapper, IFileHandler FileHandler, IHostingEnvironment HostingEnvironment, ICourseRepository CourseRepository)
 {
     this.mapper             = Mapper;
     this.fileHandler        = FileHandler;
     this.hostingEnvironment = HostingEnvironment;
     this.courseRepository   = CourseRepository;
 }
Exemplo n.º 51
0
 public CourseController(ICourseRepository _courseRepository)
 {
     this._courseRepository = _courseRepository;
 }
 public CoursesController(ICourseRepository _db)
 {
     db       = _db;
     _log4net = log4net.LogManager.GetLogger(typeof(CoursesController));
 }
Exemplo n.º 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();
 }
Exemplo n.º 54
0
 public CourseServices(ICourseRepository courseRepository, IUserRepository userRepository, IComponentRepository componentRepository)
 {
     _courseRepository    = courseRepository;
     _userRepository      = userRepository;
     _componentRepository = componentRepository;
 }
Exemplo n.º 55
0
 public CourseService(ICourseRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Exemplo n.º 56
0
 public CourseService(ICourseRepository courseRepository)
 {
     this._courseRepository = courseRepository;
 }
Exemplo n.º 57
0
 static EventController()
 {
     s_repository = new EventRepository();
     s_course_repository = new CourseRepository();
 }
Exemplo n.º 58
0
 public SchoolUnitOfWork(SchoolContext context, IPersonRepository personRepository, ICourseRepository courseRepository)
 {
     this.context          = context;
     this.PersonRepository = personRepository;
     this.CourseRepository = courseRepository;
 }
Exemplo n.º 59
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="iCourseRepository"></param>
 public CourseController(ICourseRepository iCourseRepository)
 {
     this._iCourseRepository = iCourseRepository;
 }
Exemplo n.º 60
0
 public Handler(IUnitOfWork unitOfWork, IRepository <Instructor> instructorRepository, ICourseRepository courseRepository, INotificationService notificationService, IOptionsMonitor <EnvironmentOptions> environmentOptions)
 {
     _unitOfWork           = unitOfWork;
     _instructorRepository = instructorRepository;
     _courseRepository     = courseRepository;
     _notificationService  = notificationService;
     _environmentOptions   = environmentOptions;
 }