コード例 #1
0
 public LmsUserManager(ILmsUserRepository lmsUserRepository, IGradeLevelRepository gradeLevelRepository, 
     ICourseRepository courseRepository)
 {
     _lmsUserRepository = lmsUserRepository;
     _gradeLevelRepository = gradeLevelRepository;
     _courseRepository = courseRepository;
 }
コード例 #2
0
        // Constructor Injection
        public CourseAppService(ICourseRepository rep)
        {
            if (rep == null)
                throw new ArgumentNullException("rep");

            _rep = rep;
        }
コード例 #3
0
 public CourseController(ICourseRepository courseRepository, IDepartmentRepository departmentRepository,
     IMapper mapper)
 {
     _courseRepository = courseRepository;
     _departmentRepository = departmentRepository;
     _mapper = mapper;
 }
コード例 #4
0
ファイル: CourseService.cs プロジェクト: davericher/cst8256
 /// <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;
 }
コード例 #5
0
ファイル: CurriculaController.cs プロジェクト: hbdal/curri
        public CurriculaController(ICurriculumRepository CurriculaRepo, ICourseRepository CourseRepo)
        {
            this.CurriculaRepo = CurriculaRepo;
            this.CourseRepo = CourseRepo;

            CurriculaRepo.SetContext(db);
        }
コード例 #6
0
 public InstructorController(IInstructorRepository instructorRepository,
     ICourseRepository courseRepository, IDepartmentRepository departmentRepository, IMapper mapper)
 {
     _instructorRepository = instructorRepository;
     _courseRepository = courseRepository;
     _departmentRepository = departmentRepository;
     _mapper = mapper;
 }
コード例 #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;
 }
コード例 #8
0
 public HomeworkController(IHomeworkRepository homeworkRepository,
     IAcademicYearDetailsRepository academicYearDetailRepository, ICourseRepository courseRepository, ITeacherRepository teacherRepository)
 {
     _homeworkRepository = homeworkRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
     _courseRepository = courseRepository;
     _academicYearDetailRepository = academicYearDetailRepository;
     _teacherRepository = teacherRepository;
 }
コード例 #9
0
ファイル: GameController.cs プロジェクト: kobbikobb/Folferine
 public GameController(
     IGameRepository gameRepository, 
     ICourseRepository courseRepository, 
     IUserRepository userRepository)
 {
     this.gameRepository = gameRepository;
     this.courseRepository = courseRepository;
     this.userRepository = userRepository;
 }
コード例 #10
0
ファイル: CourseController.cs プロジェクト: priestd09/extems
        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;
        }
コード例 #11
0
 public AcademicYearDetailsController(IAcademicYearDetailsRepository academicYearDetailsRepository,
     ICourseRepository courseRepository, ITeacherRepository teacherRepository,
     IAcademicYearRepository academicYearRepository)
 {
     _academicYearDetailsRepository = academicYearDetailsRepository;
     _courseRepository = courseRepository;
     _teacherRepository = teacherRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
コード例 #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;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
ファイル: CourseController.cs プロジェクト: armejiaf/Mhotivo
 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);
 }
コード例 #15
0
        public FatecService(
			ICourseRepository cursoRepository,
			IFatecRepository fatecRepository,
			ICacheManager cacheStrategy,
			IDisciplineService disciplineService)
        {
            _courseRepository = cursoRepository;
            _fatecRepository = fatecRepository;
            _cacheManager = cacheStrategy;
            _disciplineService = disciplineService;
        }
コード例 #16
0
ファイル: CourseController.cs プロジェクト: priestd09/extems
        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
            };
        }
コード例 #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;
 }
コード例 #18
0
ファイル: CourseDomain.cs プロジェクト: FTheron/LearningHub
 public CourseDomain(IDatabaseUnitOfWork databaseUnitOfWork, IStudentRepository studentRepository, ICourseRepository courseRepository, ILecturerRepository lecturerRepository)
 {
     DatabaseUnitOfWork = databaseUnitOfWork;
     StudentRepository  = studentRepository;
     CourseRepository   = courseRepository;
     LecturerRepository = lecturerRepository;
 }
コード例 #19
0
 public void CourseRepositoryTest()
 {
     cRep = new CourseRepository(dbContext.Object);
     Assert.IsNotNull(cRep);
 }
コード例 #20
0
 public CourseService(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
コード例 #21
0
 public CoursesController()
 {
     this.courseRepository = new CourseRepository();
 }
コード例 #22
0
ファイル: ModuleProvider.cs プロジェクト: ducaiulia/eUni
 public ModuleProvider(ICourseRepository courseRepo, IModuleRepository moduleRepo)
 {
     _courseRepo = courseRepo;
     _moduleRepo = moduleRepo;
 }
コード例 #23
0
 private CourseService CreateCourseService(ICourseRepository courseRepository)
 {
     return(new CourseService(courseRepository));
 }
コード例 #24
0
 public CourseService(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
 }
コード例 #25
0
 public CustomCoursesController(ICourseRepository repository)
 {
     _repository = repository;
 }
コード例 #26
0
ファイル: CourseService.cs プロジェクト: jessiewwj/ContosoWeb
 public CourseService()
 {
     courseRepository = new CourseRepository(new ContosoDbContext());
 }
コード例 #27
0
 public CourseCreator(ICourseRepository repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }
コード例 #28
0
 public CourseController(ICourseRepository repository)
 {
     _repository = repository;
 }
コード例 #29
0
 public CourseController(ICourseRepository courseService)
 {
     _courseService = courseService;
 }
コード例 #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;
 }
コード例 #31
0
ファイル: CourseController.cs プロジェクト: Usman-Sheikh/MLP
 public CourseController(ICourseRepository courseRepository, ICategoryCourseRepository categoryCourseRepository)
 {
     this.courseRepository = courseRepository;
     this.categoryCourseRepository = categoryCourseRepository;
 }
コード例 #32
0
 public CourseQueries(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
コード例 #33
0
 public CourseController(ICourseRepository repo) =>
コード例 #34
0
 public WithdrawUserCommandHandler(IUserRepository userRepository, ICourseRepository courseRepository)
 {
     UserRepository   = userRepository;
     CourseRepository = courseRepository;
 }
コード例 #35
0
 public CourseCommandHandler(ICourseRepository courseRepository)
 {
     this._courseRepository = courseRepository;
 }
コード例 #36
0
 public CourseControllerTests(TestingWebAppFactory <Startup> factory)
 {
     _client           = factory.CreateClient();
     _courseRepository = factory.Resolve <ICourseRepository>();
 }
コード例 #37
0
 public CourseController(ICourseRepository courseRepository, ICategoryRepository categoryRepository)
 {
     this.courseRepository   = courseRepository;
     this.categoryRepository = categoryRepository;
 }
コード例 #38
0
 public IndexModel(ICourseRepository CourseRepository, IMapper Mapper)
 {
     this.CourseRepository = CourseRepository;
     this.mapper           = Mapper;
     this.Model            = new CourseIndexVm();
 }
コード例 #39
0
 public EnrollStudentCommandHandler(IUnitOfWork unitOfWork)
 {
     this.unitOfWork   = unitOfWork;
     studentRepository = unitOfWork.StudentRepository;
     courseRepository  = unitOfWork.CourseRepository;
 }
コード例 #40
0
 public CourseController(ICourseRepository courseRepo, IAccountRepository accountRepo, ApplicationDbContext context)
 {
     _courseRepo  = courseRepo;
     _accountRepo = accountRepo;
     _context     = context;
 }
コード例 #41
0
 public CourseFacadeTest()
 {
     _courseRepository = Substitute.For<ICourseRepository>();
     _courseFacade = new CourseFacade(_courseRepository);
 }
コード例 #42
0
 public CourseServices(ICourseRepository courseRepository)
 {
     _courseRepository = courseRepository;
 }
コード例 #43
0
 public CoursesController(ICourseRepository repository)
 {
     this.courseRepository = repository;
 }
コード例 #44
0
 public CoursesController(ICourseRepository courseRepository, IMapper mapper)
 {
     _courseRepository = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
     _mapper           = mapper;
 }
コード例 #45
0
 public HomeController(ICourseRepository Repository)
 {
     if (Repository == null)
         throw new ArgumentNullException("Repository", "No valid UserRepository supplied to FollowersController");
     _repository = Repository;
 }
コード例 #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();
 }
コード例 #47
0
 public EducationLevelController(IEducationLevelRepository areaReposity, ICourseRepository courseRepository)
 {
     _areaReposity = areaReposity;
     _courseRepository = courseRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
コード例 #48
0
 //---------------------------------------------------------------------------------------------------
 static ClubRelationships()
 {
     s_event_repository = new EventRepository();
     s_club_repository = new ClubRepository();
     s_course_repository = new CourseRepository();
 }
コード例 #49
0
ファイル: CourseController.cs プロジェクト: Usman-Sheikh/MLP
 public CourseController()
 {
     this.courseRepository = new CourseRepository();
      this.categoryCourseRepository = new CategoryCourseRepository();
 }
コード例 #50
0
 public CreateModel(IMapper Mapper, IFileHandler FileHandler, IHostingEnvironment HostingEnvironment, ICourseRepository CourseRepository)
 {
     this.mapper             = Mapper;
     this.fileHandler        = FileHandler;
     this.hostingEnvironment = HostingEnvironment;
     this.courseRepository   = CourseRepository;
 }
コード例 #51
0
 public CourseController(ICourseRepository _courseRepository)
 {
     this._courseRepository = _courseRepository;
 }
コード例 #52
0
 public CoursesController(ICourseRepository _db)
 {
     db       = _db;
     _log4net = log4net.LogManager.GetLogger(typeof(CoursesController));
 }
コード例 #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();
 }
コード例 #54
0
 public CourseServices(ICourseRepository courseRepository, IUserRepository userRepository, IComponentRepository componentRepository)
 {
     _courseRepository    = courseRepository;
     _userRepository      = userRepository;
     _componentRepository = componentRepository;
 }
コード例 #55
0
 public CourseService(ICourseRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
コード例 #56
0
 public CourseService(ICourseRepository courseRepository)
 {
     this._courseRepository = courseRepository;
 }
コード例 #57
0
 static EventController()
 {
     s_repository = new EventRepository();
     s_course_repository = new CourseRepository();
 }
コード例 #58
0
 public SchoolUnitOfWork(SchoolContext context, IPersonRepository personRepository, ICourseRepository courseRepository)
 {
     this.context          = context;
     this.PersonRepository = personRepository;
     this.CourseRepository = courseRepository;
 }
コード例 #59
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="iCourseRepository"></param>
 public CourseController(ICourseRepository iCourseRepository)
 {
     this._iCourseRepository = iCourseRepository;
 }
コード例 #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;
 }