예제 #1
0
 public AreasService(CookbookDbContext context, IMapper mapper,
                     IUserContextService userContextService, IAuthorizationService authorizationService,
                     IAreasRepository <Area> areasRepository)
     : base(context, mapper, userContextService, authorizationService)
 {
     _areasRepository = areasRepository;
 }
예제 #2
0
 public AreaController(IAreasRepository areasRepository, IIndicatorsRepository indicatorsRepository, IYearsRepository yearsRepository, IStatisticsService statisticsService)
 {
     this.areasRepository      = areasRepository;
     this.indicatorsRepository = indicatorsRepository;
     this.yearsRepository      = yearsRepository;
     this.statisticsService    = statisticsService;
 }
예제 #3
0
 public AreasManager(IAreasRepository areasRepository, ICacheHandler cacheHandler, IStatisticsService statisticsService, IElasticService elasticService) : base(areasRepository)
 {
     _areasRepository   = areasRepository;
     _cragsCache        = cacheHandler.CragsCache;
     _cragsCacheLock    = cacheHandler.CragsCacheLock;
     _statisticsService = statisticsService;
     _elasticService    = elasticService;
 }
예제 #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));
            }
        }
예제 #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>();
        }
예제 #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));
            }
        }
예제 #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;
 }
예제 #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);
        }
예제 #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);
        }
예제 #11
0
 public ListAreas(IAreasRepository context, IMapper mapper)
 {
     _mapper  = mapper;
     _context = context;
 }
예제 #12
0
        public AreasController(IAreasRepository<Area> areasRepository)
        {
            _areasRepository = areasRepository;

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