public CoursesInfoProvider(IGetAllRepository <Course> coursesRepository, IGetAllRepository <Language> languagesRepository,
                            IGetAllRepository <LearningSystem> learningSystemsRepository, IGetAllRepository <Level> levelsRepository)
 {
     this.coursesRepository         = coursesRepository;
     this.languagesRepository       = languagesRepository;
     this.learningSystemsRepository = learningSystemsRepository;
     this.levelsRepository          = levelsRepository;
 }
        public GamePointerService()
        {
            var repo = new WatchedExecutionRepository(new UwpDbPath());

            _repo       = repo;
            _addRepo    = repo;
            _updateRepo = repo;
            _deleteRepo = repo;

            _watcher.ApplicationFocusChanged += ApplicationFocusWatcher_ApplicationFocusChanged;
            _watchedExecutions = new ObservableCollection <WatchedExecution>(_repo.GetAll());
        }
 public PersonAdditionalInfoProvider(
     IGetAllRepository <AnswerType> answerTypeRepository,
     IGetAllRepository <Ethnicity> ethnicitiesRepository,
     IGetAllRepository <Orientation> orientationRepository,
     IGetAllRepository <Unit> unitRepository,
     ICountriesRepository countryRepository)
 {
     this.answerTypeRepository  = answerTypeRepository;
     this.ethnicitiesRepository = ethnicitiesRepository;
     this.orientationRepository = orientationRepository;
     this.unitRepository        = unitRepository;
     this.countryRepository     = countryRepository;
 }
Beispiel #4
0
 public AttendeeNHController(IGetAllRepository <Attendee> repository)
 {
     this.repository = repository;
 }
 public NHApiController(IGetAllRepository <T> repository)
 {
     this.repository = repository;
 }
Beispiel #6
0
 public GetAllController(IGetAllRepository getAllRepository)
 {
     this.getAllRepository = getAllRepository;
 }
 public UsersNHController(IGetAllRepository <User> repository)
 {
     this.repository = repository;
 }
 public EventNHController(IGetAllRepository <Event> repository)
     : base(repository)
 {
 }
Beispiel #9
0
 public AcademicProgramNHController(IGetAllRepository <AcademicProgram> repository)
     : base(repository)
 {
 }
 public VolunteerNHController(IGetAllRepository <Volunteer> repository)
     : base(repository)
 {
 }
 public DepartmentNHController(IGetAllRepository <Department> repository)
     : base(repository)
 {
 }
 public AddressNHController(IGetAllRepository <Address> repository)
     : base(repository)
 {
 }
 public SchoolTypeNHController(IGetAllRepository <SchoolType> repository)
     : base(repository)
 {
 }
Beispiel #14
0
        private bool SaveToFile <T>(IGetAllRepository <T> entities) where T : IEntity
        {
            var data = JsonConvert.SerializeObject(entities.GetAll());

            return(_dataFileProvider.UpdateFileText(typeof(T).Name, data));
        }
Beispiel #15
0
 public CityTypeNHController(IGetAllRepository <CityType> repository)
     : base(repository)
 {
 }