Example #1
0
 public AreasService(CookbookDbContext context, IMapper mapper,
                     IUserContextService userContextService, IAuthorizationService authorizationService,
                     IAreasRepository <Area> areasRepository)
     : base(context, mapper, userContextService, authorizationService)
 {
     _areasRepository = areasRepository;
 }
Example #2
0
 public AreaController(IAreasRepository areasRepository, IIndicatorsRepository indicatorsRepository, IYearsRepository yearsRepository, IStatisticsService statisticsService)
 {
     this.areasRepository      = areasRepository;
     this.indicatorsRepository = indicatorsRepository;
     this.yearsRepository      = yearsRepository;
     this.statisticsService    = statisticsService;
 }
 public AreasManager(IAreasRepository areasRepository, ICacheHandler cacheHandler, IStatisticsService statisticsService, IElasticService elasticService) : base(areasRepository)
 {
     _areasRepository   = areasRepository;
     _cragsCache        = cacheHandler.CragsCache;
     _cragsCacheLock    = cacheHandler.CragsCacheLock;
     _statisticsService = statisticsService;
     _elasticService    = elasticService;
 }
Example #4
0
        public WeatherLatestViewModel(IWeatherRepository weather, IAreasRepository areas)
        {
            _weather = weather;
            _areas   = areas;

            foreach (var area in _areas.GetData())
            {
                Areas.Add(new AreaEntity(area.AreaId, area.AreaName));
            }
        }
Example #5
0
        public WeatherLatestViewModel(IWeatherRepository weather,
                                      IAreasRepository areas)
        {
            _weather = weather;                    //weatherを _weatherに代入
            _areas   = areas;                      //areasを _areasに代入

            foreach (var area in _areas.GetData()) //foreachループ
            {
                Areas.Add(new AreaEntity(area.AreaId, area.AreaName));
            }
        }
        public DiscussionController(IDiscussionsContext context,
            IDiscussionRepository<Discussion> discussionRepository, IUsersRepository<User> userRepository,
            IAreasRepository<Area> areasRepository, IInterestsRepository<Gada.Interests.Entities.Interest> interestsRepository)
        {
            _context = context;
            _discussionRepository = discussionRepository;
            _userRepository = userRepository;
            _areasRepository = areasRepository;
            _interestsRepository = interestsRepository;

            Mapper.AddProfile<DiscussionsMappingProfile>();
            Mapper.AddProfile<PostsMappingProfile>();
        }
Example #7
0
        public WeatherSaveViewModel(IWeatherRepository weather, IAreasRepository areas)
        {
            _areas   = areas;
            _weather = weather;

            DataDateValue     = GetDateTime();
            SelectedCondition = Condition.Sunny.Value;
            TemperatureText   = string.Empty;

            foreach (var area in _areas.GetData())
            {
                Areas.Add(new AreaEntity(area.AreaId, area.AreaName));
            }
        }
Example #8
0
 public StatisticsService(IAreasRepository areasRepository,
                          ICragsRepository cragsRepository,
                          ISectorsRepository sectorsRepository,
                          IAscentsRepository ascentsRepository,
                          ICacheHandler cacheHandler,
                          IElasticService elasticService)
 {
     _areasRepository   = areasRepository;
     _cragsRepository   = cragsRepository;
     _sectorsRepository = sectorsRepository;
     _ascentsRepository = ascentsRepository;
     _cragsCache        = cacheHandler.CragsCache;
     _cragsCacheLock    = cacheHandler.CragsCacheLock;
     _elasticService    = elasticService;
 }
Example #9
0
        public WeatherLatestViewModel(
            IWeatherRepository weather,
            IAreasRepository areas)
        {
            _weather         = weather;
            _areasRepository = areas;

            foreach (var area in _areasRepository.GetData())
            {
                Areas.Add(new AreaEntity(area.AreaId, area.AreaName));
            }

            LatestButton = new DelegateCommand(LatestButtonExecute);
            TestButton   = new DelegateCommand(TestButtonExecute);
            TestButton2  = new DelegateCommand(TestButtonExecute2);
        }
Example #10
0
        public WeatherSaveViewModel(
            IWeatherRepository wather,
            IAreasRepository areas,
            IMessageService messageService)
        {
            _wather          = wather;
            _areasRepository = areas;
            _messageService  = messageService;

            DataDateValue     = GetDateTime();
            SelectedCondition = Condition.Sunny;
            TemperatureText   = string.Empty;

            foreach (var area in _areasRepository.GetData())
            {
                Areas.Add(new AreaEntity(area.AreaId, area.AreaName));
            }

            SaveButton = new DelegateCommand(SaveButtonExecute);
        }
Example #11
0
 public ListAreas(IAreasRepository context, IMapper mapper)
 {
     _mapper  = mapper;
     _context = context;
 }
        public AreasController(IAreasRepository<Area> areasRepository)
        {
            _areasRepository = areasRepository;

            Mapper.AddProfile<AreasMappingProfile>();
        }
Example #13
0
 public GetSingleArea(IAreasRepository context, IMapper mapper)
 {
     _mapper  = mapper;
     _context = context;
 }
Example #14
0
 public AreasController(IAreasRepository areasRepository, IGeoPointsRepository geoPointsRepository)
 {
     _areasRepository     = areasRepository;
     _geoPointsRepository = geoPointsRepository;
 }