コード例 #1
0
 public LessonController(
     ILessonRepository lessonRepository,
     ILessonConvertor lessonConvertor)
 {
     this.lessonRepository = lessonRepository;
     this.lessonConvertor  = lessonConvertor;
 }
コード例 #2
0
 public LessonStudentService(ILessonStudentRepository lessonStudentRepository, IUnitOfWork unitOfWork, ILessonRepository lessonRepository, IStudentRepository studentRepository)
 {
     _lessonStudentRepository = lessonStudentRepository;
     _unitOfWork        = unitOfWork;
     _lessonRepository  = lessonRepository;
     _studentRepository = studentRepository;
 }
コード例 #3
0
 public FavouritePageViewModel(INavigationService navigationService, ILessonRepository LessonRepo)
 {
     this.navigationService = navigationService;
     this.LessonRepo        = LessonRepo;
     MyList   = new ObservableCollection <Lesson>(LessonRepo.GetAllLesson().Result);
     TempList = new ObservableCollection <Lesson>(MyList);
 }
コード例 #4
0
        public DbUnit(MySQLContext db, IAuditoriumRepository auditoriumRepository, IAuditoriumImgRepository auditoriumImgRepository,
                      IClassRepository classRepository, IClassImgRepository classImgRepository, IFamilyRepository familyRepository,
                      IFamilyMemberRepository familyMemberRepository, ILessonRepository lessonRepository, ILessonDurationRepository lessonDurationRepository,
                      IPersonalDataRepository personalDataRepository, IPersonalImgRepository personalImgRepository, IProgressRepository progressRepository,
                      IScheduleRepository scheduleRepository, ISchoolRepository schoolRepository, IStudentRepository studentRepository,
                      ITeacherRepository teacherRepository, IUserAccountRepository userAccountRepository, IHomeworkRepository homeworkRepository)
        {
            this.db = db;

            AuditoriumRepository     = auditoriumRepository;
            AuditoriumImgRepository  = auditoriumImgRepository;
            ClassRepository          = classRepository;
            ClassImgRepository       = classImgRepository;
            HomeworkRepository       = homeworkRepository;
            FamilyRepository         = familyRepository;
            FamilyMemberRepository   = familyMemberRepository;
            LessonDurationRepository = lessonDurationRepository;
            LessonRepository         = lessonRepository;
            PersonalDataRepository   = personalDataRepository;
            PersonalImgRepository    = personalImgRepository;
            ProgressRepository       = progressRepository;
            ScheduleRepository       = scheduleRepository;
            SchoolRepository         = schoolRepository;
            StudentRepository        = studentRepository;
            TeacherRepository        = teacherRepository;
            UserAccountRepository    = userAccountRepository;
        }
コード例 #5
0
 public DbInitializer(UserManager <AppUser> userManager, RoleManager <IdentityRole> roleManager, ILessonRepository lessonRepo, ILessonTaskRepository taskRepo)
 {
     _userManager = userManager;
     _roleManager = roleManager;
     _lessonRepo  = lessonRepo;
     _taskRepo    = taskRepo;
 }
コード例 #6
0
 public StudentController(IStudentRepository studentRepository, ICityRepository cityRepository, IDistrictRepository districtRepository, ILessonRepository lessonRepository)
 {
     _studentRepository  = studentRepository;
     _cityRepository     = cityRepository;
     _districtRepository = districtRepository;
     _lessonRepository   = lessonRepository;
 }
コード例 #7
0
 public LessonLogic(ILessonRepository lessonRepository, ICourseRepository courseRepository, IModuleRepository moduleRepository)
 {
     _mapper           = AutomapperConfiguration.Instance().CreateMapper();
     _lessonRepository = lessonRepository;
     _courseRepository = courseRepository;
     _moduleRepository = moduleRepository;
 }
コード例 #8
0
 public LessonDataService()
 {
     this._lessonRepository    = (ILessonRepository)Mvx.get_IoCProvider().Resolve <ILessonRepository>();
     this._settingsDataService = (ISettingsDataService)Mvx.get_IoCProvider().Resolve <ISettingsDataService>();
     this._secureStore         = (ISecureStore)Mvx.get_IoCProvider().Resolve <ISecureStore>();
     this._mobileApi           = (IMobileApi)Mvx.get_IoCProvider().Resolve <IMobileApi>();
 }
コード例 #9
0
 public EventService(IMapper mapper,
                     IMediatorHandler bus,
                     IUnitOfWork unitOfWork,
                     ILessonRepository lessonRepository) : base(bus, unitOfWork)
 {
     _mapper           = mapper;
     _lessonRepository = lessonRepository;
 }
コード例 #10
0
 public ListDownloadedAudioPageViewModel(INavigationService navigationService, ILessonRepository LessonRepo)
 {
     IsCheck = false;
     this.navigationService = navigationService;
     this.LessonRepo        = LessonRepo;
     MyList   = new ObservableCollection <Lesson>(LessonRepo.GetAllLesson().Result);
     TempList = new ObservableCollection <Lesson>(MyList);
 }
コード例 #11
0
 public LessonService(ILesson lesson, ILessonRepository lessonRepository,
                      IStudentRepository studentRepository, ITrainerRepository trainerRepository)
 {
     _lesson            = lesson;
     _lessonRepository  = lessonRepository;
     _studentRepository = studentRepository;
     _trainerRepository = trainerRepository;
 }
コード例 #12
0
 public LessonService(
     IDatabaseUnitOfWork databaseUnitOfWork,
     ILessonRepository lessonRepository
     )
 {
     DatabaseUnitOfWork = databaseUnitOfWork;
     LessonRepository   = lessonRepository;
 }
コード例 #13
0
 public LessonBusiness(ILessonRepository lessonRepository, IDisciplineBusiness disciplineBusiness, CollabAPIService collabAPIService)
 {
     _lessonRepository          = lessonRepository;
     _disciplineBusiness        = disciplineBusiness;
     _collabAPIService          = collabAPIService;
     _lessonConverter           = new LessonConverter();
     _lessonDisciplineConverter = new LessonDisciplineConverter();
     _disciplineConverter       = new DisciplineConverter();
 }
コード例 #14
0
 public LessonSubjectService(
     ILessonRepository lessonRepository,
     ILessonSubjectRepository lessonSubjectRepository,
     IMapper mapper)
 {
     this._lessonRepository        = lessonRepository;
     this._lessonSubjectRepository = lessonSubjectRepository;
     this._mapper = mapper;
 }
コード例 #15
0
 public TutorService(ITutorRepository object1, IFacultyRepository facultyRepository, IAccountRepository accountRepository, IUnitOfWork object2, ILessonRepository lessonRepository, ILessonStudentRepository lessonStudentRepository)
 {
     this._tutorRepository    = object1;
     this._unitOfWork         = object2;
     this._facultyRepository  = facultyRepository;
     this._accountRepository  = accountRepository;
     _lessonRepository        = lessonRepository;
     _lessonStudentRepository = lessonStudentRepository;
 }
コード例 #16
0
 public LessonLevelService(
     ILessonRepository lessonRepository,
     ILessonLevelRepository lessonLevelRepository,
     IMapper mapper)
 {
     this._lessonRepository      = lessonRepository;
     this._lessonLevelRepository = lessonLevelRepository;
     this._mapper = mapper;
 }
 public HomeController(ICurrentUserAccessor currentUserAccessor, ICategoryRepository categoryRepository,
                       ICourseRepository courseRepository, ILessonRepository lessonRepository, IHomeRepository homeRepository, ITopicRepository topicRepository)
 {
     _currentUserAccessor = currentUserAccessor;
     _categoryRepository  = categoryRepository;
     _courseRepository    = courseRepository;
     _lessonRepository    = lessonRepository;
     _homeRepository      = homeRepository;
     _topicRepository     = topicRepository;
 }
コード例 #18
0
 public MachineLearningDataController(
     IMLDataRepository mlDataRepository,
     IMarkRepository markRepository,
     ILessonRepository lessonRepository
     )
 {
     this.mlDataRepository = mlDataRepository;
     this.markRepository   = markRepository;
     this.lessonRepository = lessonRepository;
 }
コード例 #19
0
 public LessonsController(ILessonRepository lessonRepository, ICourseRepository courseRepository,
                          IMapper mapper, ILogger <LessonsController> logger, IUserRepository userRepository,
                          ISubscriptionsService subscriptionsService)
 {
     _lessonRepository     = lessonRepository ?? throw new ArgumentNullException(nameof(lessonRepository));
     _courseRepository     = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
     _userRepository       = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _mapper               = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     _subscriptionsService = subscriptionsService ?? throw new ArgumentNullException(nameof(subscriptionsService));
 }
コード例 #20
0
        public LessonServiceTest()
        {
            _entityValidator = A.Fake<EntityValidator>();
            _lessonRepository = A.Fake<ILessonRepository>();
            _lessonDtoMapper = A.Fake<ILessonDtoMapper>();

            _lessonService = new LessonService(
                _entityValidator,
                _lessonRepository,
                _lessonDtoMapper);
        }
コード例 #21
0
 public RozkladForTeachersHandler(
     IGroupRepository groupRepository,
     IWeekRepository weekRepository,
     ITeacherRepository teacherRepository,
     ILessonRepository lessonRepository)
 {
     _groupRepository   = groupRepository;
     _weekRepository    = weekRepository;
     _lessonRepository  = lessonRepository;
     _teacherRepository = teacherRepository;
 }
コード例 #22
0
 public CoursesController(ICoursesRepository courses,
                          ICategoryRepository category,
                          IRateRepository rate, ICetificateRepository cetificate,
                          ILessonRepository lesson, IFileService file)
 {
     _courses    = courses;
     _category   = category;
     _rate       = rate;
     _cetificate = cetificate;
     _lesson     = lesson;
     _file       = file;
 }
コード例 #23
0
 public CoachLessonService(
     ICoachLessonRepository coachLessonRepository,
     ILessonRepository lessonRepository,
     IAddressRepository addressRepository,
     ILessonLevelRepository lessonLevelRepository,
     IMapper mapper)
 {
     _coachLessonRepository = coachLessonRepository;
     _lessonRepository      = lessonRepository;
     _addressRepository     = addressRepository;
     _lessonLevelRepository = lessonLevelRepository;
     _mapper = mapper;
 }
コード例 #24
0
 public CoursesController(ICourseRepository repo, IMapper mapper,
                          ILessonRepository lesson,
                          ILearningRepository user,
                          IHostingEnvironment hostingEn,
                          DataContext data)
 {
     _mapper     = mapper;
     _repo       = repo;
     _hostingEnv = hostingEn;
     _data       = data;
     _lesson     = lesson;
     _user       = user;
 }
コード例 #25
0
 public LessonService(
     ILessonRepository lessonRepository,
     ICoachLessonRepository coachLessonRepository,
     IMessageService messageService,
     IUserRepository userRepository,
     IMapper mapper)
 {
     this._lessonRepository      = lessonRepository;
     this._coachLessonRepository = coachLessonRepository;
     this._messageService        = messageService;
     this._userRepository        = userRepository;
     this._mapper = mapper;
 }
コード例 #26
0
 public SyllabusService(
     IDatabaseUnitOfWork databaseUnitOfWork,
     ISyllabusRepository syllabusRepository,
     ILessonRepository lessonRepository,
     IUserRepository userRepository,
     ILocationRepository locationRepository
     )
 {
     _databaseUnitOfWork = databaseUnitOfWork;
     _syllabusRepository = syllabusRepository;
     _lessonRepository   = lessonRepository;
     _userRepository     = userRepository;
     _locationRepository = locationRepository;
 }
コード例 #27
0
ファイル: BotController.cs プロジェクト: roetezadi/KonkorApi
 public BotController(IServiceRepository serviceRepository
                      , IFieldRepository fieldRepository, IGradeRepository gradeRepository
                      , IBookNameRepository bookNameRepository, ILessonRepository lessonRepository
                      , ITopicRepository topicRepository, IExamTestRespository examTestRepository
                      , DAL.Repository.ExamTestQuestion.IExamTestQuestionRepository examTestQuestionRepository)
 {
     _serviceRepository          = serviceRepository;
     _fieldRepository            = fieldRepository;
     _gradeRepository            = gradeRepository;
     _bookNameRepository         = bookNameRepository;
     _lessonRepository           = lessonRepository;
     _topicRepository            = topicRepository;
     _examTestRepository         = examTestRepository;
     _examTestQuestionRepository = examTestQuestionRepository;
 }
コード例 #28
0
 public MLDataRepository
 (
     INamedBucketProvider provider,
     IGroupCourseRepository groupCourseRepository,
     IStudentRepository studentRepository,
     ILessonRepository lessonRepository,
     IMarkRepository markRepository
 )
 {
     this.bucket = provider.GetBucket();
     this.groupCourseRepository = groupCourseRepository;
     this.studentRepository     = studentRepository;
     this.lessonRepository      = lessonRepository;
     this.markRepository        = markRepository;
 }
コード例 #29
0
ファイル: ScoreService.cs プロジェクト: WadeOne/EasyTeach
        public ScoreService(
            EntityValidator entityValidator, 
            IScoreRepository scoreRepository, 
            IScoreDtoMapper scoreDtoMapper, 
            IVisitRepository visitRepository, 
            ILessonRepository lessonRepository,
            IVisitDtoMapper visitDtoMapper
            )
        {
            if (entityValidator == null)
            {
                throw new ArgumentNullException("entityValidator");
            }

            if (scoreRepository == null)
            {
                throw new ArgumentNullException("scoreRepository");
            }

            if (scoreDtoMapper == null)
            {
                throw new ArgumentNullException("scoreDtoMapper");
            }

            if (visitRepository == null)
            {
                throw new ArgumentNullException("visitRepository");
            }

            if (lessonRepository == null)
            {
                throw new ArgumentNullException("lessonRepository");
            }

            if (visitDtoMapper == null)
            {
                throw new ArgumentNullException("visitDtoMapper");
            }

            _entityValidator = entityValidator;
            _scoreRepository = scoreRepository;
            _scoreDtoMapper = scoreDtoMapper;
            _visitRepository = visitRepository;
            _lessonRepository = lessonRepository;
            _visitDtoMapper = visitDtoMapper;
        }
コード例 #30
0
 public DashboardController(
     ICourseRepository courseRepository,
     IGroupRepository groupRepository,
     IStudentRepository studentRepository,
     IUserRepository userRepository,
     IGroupCourseRepository groupCourseRepository,
     IMarkRepository markRepository,
     ILessonRepository lessonRepository,
     IMLDataRepository mlDataRepository)
 {
     this.courseRepository      = courseRepository;
     this.groupRepository       = groupRepository;
     this.studentRepository     = studentRepository;
     this.userRepository        = userRepository;
     this.groupCourseRepository = groupCourseRepository;
     this.markRepository        = markRepository;
     this.lessonRepository      = lessonRepository;
     this.mlDataRepository      = mlDataRepository;
 }
コード例 #31
0
ファイル: LessonService.cs プロジェクト: WadeOne/EasyTeach
        public LessonService(EntityValidator entityValidator, ILessonRepository lessonRepository, ILessonDtoMapper lessonDtoMapper)
        {
            if (entityValidator == null)
            {
                throw new ArgumentNullException("entityValidator");
            }

            if (lessonRepository == null)
            {
                throw new ArgumentNullException("lessonRepository");
            }

            if (lessonDtoMapper == null)
            {
                throw new ArgumentNullException("lessonDtoMapper");
            }

            _entityValidator = entityValidator;
            _lessonRepository = lessonRepository;
            _lessonDtoMapper = lessonDtoMapper;
        }
コード例 #32
0
 public LessonService(
     ILogger <ILessonRepository> logger,
     ILessonRepository lessonRepository,
     IApiLessonRequestModelValidator lessonModelValidator,
     IBOLLessonMapper bollessonMapper,
     IDALLessonMapper dallessonMapper,
     IBOLLessonXStudentMapper bolLessonXStudentMapper,
     IDALLessonXStudentMapper dalLessonXStudentMapper,
     IBOLLessonXTeacherMapper bolLessonXTeacherMapper,
     IDALLessonXTeacherMapper dalLessonXTeacherMapper
     )
     : base(logger,
            lessonRepository,
            lessonModelValidator,
            bollessonMapper,
            dallessonMapper,
            bolLessonXStudentMapper,
            dalLessonXStudentMapper,
            bolLessonXTeacherMapper,
            dalLessonXTeacherMapper)
 {
 }
コード例 #33
0
 public AbstractLessonService(
     ILogger logger,
     ILessonRepository lessonRepository,
     IApiLessonRequestModelValidator lessonModelValidator,
     IBOLLessonMapper bolLessonMapper,
     IDALLessonMapper dalLessonMapper,
     IBOLLessonXStudentMapper bolLessonXStudentMapper,
     IDALLessonXStudentMapper dalLessonXStudentMapper,
     IBOLLessonXTeacherMapper bolLessonXTeacherMapper,
     IDALLessonXTeacherMapper dalLessonXTeacherMapper)
     : base()
 {
     this.lessonRepository        = lessonRepository;
     this.lessonModelValidator    = lessonModelValidator;
     this.bolLessonMapper         = bolLessonMapper;
     this.dalLessonMapper         = dalLessonMapper;
     this.bolLessonXStudentMapper = bolLessonXStudentMapper;
     this.dalLessonXStudentMapper = dalLessonXStudentMapper;
     this.bolLessonXTeacherMapper = bolLessonXTeacherMapper;
     this.dalLessonXTeacherMapper = dalLessonXTeacherMapper;
     this.logger = logger;
 }
コード例 #34
0
ファイル: VisitService.cs プロジェクト: WadeOne/EasyTeach
        public VisitService(
            IVisitRepository visitRepository,
            ILessonRepository lessonRepository,
            IUserRepository userRepository,
            EntityValidator entityValidator,
            IVisitDtoMapper visitDtoMapper)
        {
            if (visitRepository == null)
            {
                throw new ArgumentNullException("visitRepository");
            }

            if (lessonRepository == null)
            {
                throw new ArgumentNullException("lessonRepository");
            }

            if (userRepository == null)
            {
                throw new ArgumentNullException("userRepository");
            }

            if (entityValidator == null)
            {
                throw new ArgumentNullException("entityValidator");
            }

            if (visitDtoMapper == null)
            {
                throw new ArgumentNullException("visitDtoMapper");
            }

            _visitRepository = visitRepository;
            _lessonRepository = lessonRepository;
            _userRepository = userRepository;
            _entityValidator = entityValidator;
            _visitDtoMapper = visitDtoMapper;
        }
コード例 #35
0
ファイル: LessonService.cs プロジェクト: hrraydov/StudyIt
 public LessonService()
 {
     this.lessonRepo = new LessonRepository(new StudyItContext());
 }
コード例 #36
0
ファイル: LessonService.cs プロジェクト: hrraydov/StudyIt
 public LessonService(ILessonRepository lessonRepo)
 {
     this.lessonRepo = lessonRepo;
 }
コード例 #37
0
 public LessonManagementService(ILessonRepository repository)
 {
     _repository = repository;
 }
コード例 #38
0
 public LessonDisplayingService(ILessonRepository repository)
 {
     _repository = repository;
 }