示例#1
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;
        }
示例#2
0
 public PlayerDataUpdater(IProgressRepository progressRepository, IProgressBuilder progressBuilder, ILocalStorage localStorage, IBalanceUpdater balanceUpdater)
 {
     _progressRepository = progressRepository;
     _progressBuilder    = progressBuilder;
     _localStorage       = localStorage;
     _balanceUpdater     = balanceUpdater;
 }
示例#3
0
 public ProgressService(IInstructor instructor, ILectureRepository lectureRepository,
                        IProgressRepository progressRepository)
 {
     _instructor         = instructor;
     _progressRepository = progressRepository;
     _lectureRepository  = lectureRepository;
 }
示例#4
0
 public QuickCoursesTestServer()
 {
     server             = new TestServer(new WebHostBuilder().UseStartup <Startup>());
     courseeRepository  = (IRepository <CourseData>)server.Host.Services.GetService(typeof(IRepository <CourseData>));
     userRepository     = (IUserRepository)server.Host.Services.GetService(typeof(IUserRepository));
     progressRepository = (IProgressRepository)server.Host.Services.GetService(typeof(IProgressRepository));
 }
 public ProgressController(
     IProgressRepository progressRepository,
     IRepository <CourseData> courseRepository)
 {
     this.progressRepository = progressRepository;
     this.courseRepository   = courseRepository;
 }
示例#6
0
 public ProgressFetcher(ILocalStorage local,
                        IProgressRepository progressRepository,
                        IProgressBuilder progressBuilder)
 {
     _localStorage       = local;
     _progressRepository = progressRepository;
     _progressBuilder    = progressBuilder;
 }
示例#7
0
 public HomeController(IDemandRepository repository, IUserInformationRepository userRepository,
     IProgressRepository progressRepository)
 {
     this.repository = repository;
     this.userRepository = userRepository;
     this.progressRepository = progressRepository;
     PageSize = Settings.Default.PageSize;
     ListProviders.SetListProvider(() => new DemandListProvider());
 }
示例#8
0
 public ProgressBuilder(ILocalStorage local,
                        IGoalsRepository goalsRepository,
                        IProgressRepository progressRepository,
                        ISleepRepository sleepRepository)
 {
     _localStorage       = local;
     _goalsRepository    = goalsRepository;
     _progressRepository = progressRepository;
     _sleepRepository    = sleepRepository;
 }
 public ProgressService
 (
     IUnitOfWork unitOfWork,
     IProgressRepository ProgressRepository,
     IUserRepository userRepository
 )
 {
     _unitOfWork         = unitOfWork;
     _ProgressRepository = ProgressRepository;
     _userRepository     = userRepository;
 }
示例#10
0
        public void Init()
        {
            settings = new Settings(
                connectionString: "mongodb://localhost:27017/",
                database: "Test",
                collectionName: "Progress"
                );

            progressRepository = new ProgressRepository(settings);

            progressRepositoryDbContext = new DbContext <CourseProgressData>(settings);
        }
示例#11
0
 public ProjectsController(
     IProjectRepository projectRepository,
     IMapper mapper,
     IHashtagRepository hashtagRepository,
     IProgressRepository progressRepository,
     IKindOfProjectRepository kindOfProjectRepository)
 {
     _projectRepository       = projectRepository;
     _progressRepository      = progressRepository;
     _hashtagRepository       = hashtagRepository;
     _kindOfProjectRepository = kindOfProjectRepository;
     _mapper = mapper;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProgressModule" />.
        /// </summary>
        /// <param name="repository">The member's repository</param>
        public ProgressModule(IApplication application, IProgressRepository repository)
            : base(application)
        {
            this._Repository = repository;

            // Define a route for urls "/members/{id}" which will returns the member matching the specified slug
            this.Get["/{id}"] = parameters =>
            {
                return GetMember(parameters.id);
            };

            // Bind the HTTP GET verb to the ListMembers method
            this.Get["/progression"] = ListPublicProgressSteps;
        }
示例#13
0
 public ProgressService(IProgressRepository progressRepository, IUnitOfWork unitOfWork)
 {
     _progressRepository = progressRepository;
     _unitOfWork         = unitOfWork;
 }
示例#14
0
 public ProgressController(IWindowFormsFactory inWindowFormsFactory, IRepositoryFactory inRepositoryFactory)
 {
     _formsFactory       = inWindowFormsFactory;
     _repositoryFactory  = inRepositoryFactory;
     _progressRepository = _repositoryFactory.GetProgressRepository();
 }