コード例 #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));
            }
        }
コード例 #6
0
        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
ファイル: WeatherSaveViewModel.cs プロジェクト: kero1976/DDD
        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
ファイル: GetSingleArea.cs プロジェクト: lealxh/Mantenedores
 public GetSingleArea(IAreasRepository context, IMapper mapper)
 {
     _mapper  = mapper;
     _context = context;
 }
コード例 #14
0
 public AreasController(IAreasRepository areasRepository, IGeoPointsRepository geoPointsRepository)
 {
     _areasRepository     = areasRepository;
     _geoPointsRepository = geoPointsRepository;
 }