Пример #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;
 }
 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;
 }
 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();
 }
 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;
 }
 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;
 }
 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;
 }
 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;
 }
 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;
 }
 public SyllabusService(
     IDatabaseUnitOfWork databaseUnitOfWork,
     ISyllabusRepository syllabusRepository,
     ILessonRepository lessonRepository,
     IUserRepository userRepository,
     ILocationRepository locationRepository
     )
 {
     _databaseUnitOfWork = databaseUnitOfWork;
     _syllabusRepository = syllabusRepository;
     _lessonRepository   = lessonRepository;
     _userRepository     = userRepository;
     _locationRepository = locationRepository;
 }
Пример #27
0
 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
        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
        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
        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
 public LessonService()
 {
     this.lessonRepo = new LessonRepository(new StudyItContext());
 }
Пример #36
0
 public LessonService(ILessonRepository lessonRepo)
 {
     this.lessonRepo = lessonRepo;
 }
Пример #37
0
 public LessonManagementService(ILessonRepository repository)
 {
     _repository = repository;
 }
Пример #38
0
 public LessonDisplayingService(ILessonRepository repository)
 {
     _repository = repository;
 }