/// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="elevationDataStorage"></param>
 /// <param name="httpGatewayFactory"></param>
 /// <param name="osmGeoJsonPreprocessorExecutor"></param>
 /// <param name="osmRepository"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="wikipediaGateway"></param>
 /// <param name="itmWgs84MathTransfromFactory"></param>
 /// <param name="latestFileFetcherExecutor"></param>
 /// <param name="tagsHelper"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 public OsmPointsOfInterestAdapter(IElasticSearchGateway elasticSearchGateway,
                                   IElevationDataStorage elevationDataStorage,
                                   IHttpGatewayFactory httpGatewayFactory,
                                   IOsmGeoJsonPreprocessorExecutor osmGeoJsonPreprocessorExecutor,
                                   IOsmRepository osmRepository,
                                   IDataContainerConverterService dataContainerConverterService,
                                   IWikipediaGateway wikipediaGateway,
                                   IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory,
                                   IOsmLatestFileFetcherExecutor latestFileFetcherExecutor,
                                   ITagsHelper tagsHelper,
                                   IOptions <ConfigurationData> options,
                                   ILogger logger) :
     base(elevationDataStorage,
          elasticSearchGateway,
          dataContainerConverterService,
          itmWgs84MathTransfromFactory,
          options,
          logger)
 {
     _httpGatewayFactory             = httpGatewayFactory;
     _osmGeoJsonPreprocessorExecutor = osmGeoJsonPreprocessorExecutor;
     _osmRepository             = osmRepository;
     _wikipediaGateway          = wikipediaGateway;
     _tagsHelper                = tagsHelper;
     _latestFileFetcherExecutor = latestFileFetcherExecutor;
 }
 public void TestInitialize()
 {
     _randomBytes = new byte[] { 0, 1, 1, 0 };
     _simpleGpx = new gpxType { wpt = new[] { new wptType() } };
     _gpsBabelGateway = Substitute.For<IGpsBabelGateway>();
     _converterService = new DataContainerConverterService(_gpsBabelGateway, new GpxGeoJsonConverter(), new GpxDataContainerConverter(), new RouteDataSplitterService(new CoordinatesConverter()));
 }
Beispiel #3
0
 public void TestInitialize()
 {
     _repository = Substitute.For <IRepository>();
     _containerConverterService = Substitute.For <IDataContainerConverterService>();
     _imgurGateway = Substitute.For <IImgurGateway>();
     _controller   = new UrlsController(_repository, _containerConverterService, new Base64ImageStringToFileConverter(), _imgurGateway, Substitute.For <ILogger>());
 }
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="elevationDataStorage"></param>
 /// <param name="clentsFactory"></param>
 /// <param name="osmGeoJsonPreprocessorExecutor"></param>
 /// <param name="osmRepository"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="wikipediaGateway"></param>
 /// <param name="itmWgs84MathTransfromFactory"></param>
 /// <param name="latestFileFetcherExecutor"></param>
 /// <param name="tagsHelper"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 public OsmPointsOfInterestAdapter(IElasticSearchGateway elasticSearchGateway,
                                   IElevationDataStorage elevationDataStorage,
                                   IClientsFactory clentsFactory,
                                   IOsmGeoJsonPreprocessorExecutor osmGeoJsonPreprocessorExecutor,
                                   IOsmRepository osmRepository,
                                   IDataContainerConverterService dataContainerConverterService,
                                   IWikipediaGateway wikipediaGateway,
                                   IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory,
                                   IOsmLatestFileFetcherExecutor latestFileFetcherExecutor,
                                   ITagsHelper tagsHelper,
                                   IOptions <ConfigurationData> options,
                                   ILogger logger) :
     base(dataContainerConverterService,
          logger)
 {
     _clientsFactory = clentsFactory;
     _osmGeoJsonPreprocessorExecutor = osmGeoJsonPreprocessorExecutor;
     _osmRepository             = osmRepository;
     _wikipediaGateway          = wikipediaGateway;
     _tagsHelper                = tagsHelper;
     _latestFileFetcherExecutor = latestFileFetcherExecutor;
     _elevationDataStorage      = elevationDataStorage;
     _wgs84ItmMathTransform     = itmWgs84MathTransfromFactory.CreateInverse();
     _options = options.Value;
     _elasticSearchGateway = elasticSearchGateway;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="nakebGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="logger"></param>
 public NakebPointsOfInterestAdapter(INakebGateway nakebGateway,
                                     IDataContainerConverterService dataContainerConverterService,
                                     ILogger logger) :
     base(dataContainerConverterService,
          logger)
 {
     _nakebGateway = nakebGateway;
 }
Beispiel #6
0
        public void TestInitialize()
        {
            _elasticSearchGateway = Substitute.For <IElasticSearchGateway>();
            var elevationDataStorage = Substitute.For <IElevationDataStorage>();

            _dataContainerConverterService = Substitute.For <IDataContainerConverterService>();
            _controller = new SearchController(_elasticSearchGateway, _dataContainerConverterService, elevationDataStorage, ItmWgs84MathTransfromFactory.Create());
        }
 public void TestInitialize()
 {
     _elasticSearchGateway = Substitute.For<IElasticSearchGateway>();
     var elevationDataStorage = Substitute.For<IElevationDataStorage>();
     
     _dataContainerConverterService = Substitute.For<IDataContainerConverterService>();
     _controller = new SearchController(_elasticSearchGateway, _dataContainerConverterService, elevationDataStorage);
 }
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="wikipediaGateway"></param>
 /// <param name="logger"></param>
 public WikipediaPointsOfInterestAdapter(IDataContainerConverterService dataContainerConverterService,
                                         IWikipediaGateway wikipediaGateway,
                                         ILogger logger) :
     base(dataContainerConverterService,
          logger)
 {
     _wikipediaGateway = wikipediaGateway;
 }
 public SearchController(IElasticSearchGateway elasticSearchGateway, 
     IDataContainerConverterService dataContainerConverterService, 
     IElevationDataStorage elevationDataStorage)
 {
     _elasticSearchGateway = elasticSearchGateway;
     _dataContainerConverterService = dataContainerConverterService;
     _elevationDataStorage = elevationDataStorage;
 }
 /// <summary>
 /// Adapter's constructor
 /// </summary>
 /// <param name="elevationDataStorage"></param>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 protected BasePointsOfInterestAdapter(IElevationDataStorage elevationDataStorage,
                                       IElasticSearchGateway elasticSearchGateway,
                                       IDataContainerConverterService dataContainerConverterService)
 {
     _elevationDataStorage          = elevationDataStorage;
     _elasticSearchGateway          = elasticSearchGateway;
     _dataContainerConverterService = dataContainerConverterService;
 }
Beispiel #11
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="nakebGateway"></param>
 /// <param name="elevationDataStorage"></param>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="logger"></param>
 public NakebPointsOfInterestAdapter(INakebGateway nakebGateway,
                                     IElevationDataStorage elevationDataStorage,
                                     IElasticSearchGateway elasticSearchGateway,
                                     IDataContainerConverterService dataContainerConverterService,
                                     ILogger logger) : base(elevationDataStorage, elasticSearchGateway, dataContainerConverterService)
 {
     _nakebGateway = nakebGateway;
     _logger       = logger;
 }
Beispiel #12
0
 protected void InitializeSubstitues()
 {
     _itmWgs84MathTransfromFactory  = new ItmWgs84MathTransfromFactory();
     _dataContainerConverterService = Substitute.For <IDataContainerConverterService>();
     _elasticSearchGateway          = Substitute.For <IElasticSearchGateway>();
     _elevationDataStorage          = Substitute.For <IElevationDataStorage>();
     _options = Substitute.For <IOptions <ConfigurationData> >();
     _options.Value.Returns(new ConfigurationData());
 }
Beispiel #13
0
 /// <summary>
 /// Controller's constructor
 /// </summary>
 /// <param name="elevationDataStorage"></param>
 /// <param name="remoteFileFetcherGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="offlineFilesService"></param>
 public FilesController(IElevationDataStorage elevationDataStorage,
                        IRemoteFileFetcherGateway remoteFileFetcherGateway,
                        IDataContainerConverterService dataContainerConverterService,
                        IOfflineFilesService offlineFilesService)
 {
     _elevationDataStorage          = elevationDataStorage;
     _remoteFileFetcherGateway      = remoteFileFetcherGateway;
     _dataContainerConverterService = dataContainerConverterService;
     _offlineFilesService           = offlineFilesService;
 }
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="iNatureGateway"></param>
 /// <param name="repository"></param>
 /// <param name="logger"></param>
 public INaturePointsOfInterestAdapter(IDataContainerConverterService dataContainerConverterService,
                                       IINatureGateway iNatureGateway,
                                       IRepository repository,
                                       ILogger logger) :
     base(dataContainerConverterService,
          logger)
 {
     _iNatureGateway = iNatureGateway;
     _repository     = repository;
 }
Beispiel #15
0
 /// <inheritdoc />
 public OffRoadPointsOfInterestAdapter(IElevationDataStorage elevationDataStorage,
                                       IElasticSearchGateway elasticSearchGateway,
                                       IOffRoadGateway offRoadGateway,
                                       IDataContainerConverterService dataContainerConverterService,
                                       ILogger logger) :
     base(elevationDataStorage, elasticSearchGateway, dataContainerConverterService)
 {
     _offRoadGateway = offRoadGateway;
     _logger         = logger;
 }
Beispiel #16
0
 public FilesController(IElevationDataStorage elevationDataStorage,
     IHttpGatewayFactory httpGatewayFactory, 
     IDataContainerConverterService dataContainerConverterService,
     LruCache<string, TokenAndSecret> cache)
 {
     _elevationDataStorage = elevationDataStorage;
     _httpGatewayFactory = httpGatewayFactory;
     _dataContainerConverterService = dataContainerConverterService;
     _cache = cache;
 }
Beispiel #17
0
 public void TestInitialize()
 {
     _randomBytes = new byte[] { 0, 1, 1, 0 };
     _simpleGpx   = new gpxType {
         wpt = new[] { new wptType() }
     };
     _gpsBabelGateway          = Substitute.For <IGpsBabelGateway>();
     _routeDataSplitterService = Substitute.For <IRouteDataSplitterService>();
     _converterService         = new DataContainerConverterService(_gpsBabelGateway, new GpxGeoJsonConverter(), new GpxDataContainerConverter(), _routeDataSplitterService);
 }
Beispiel #18
0
 /// <summary>
 /// Controller's constructor
 /// </summary>
 /// <param name="elevationDataStorage"></param>
 /// <param name="httpGatewayFactory"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="cache"></param>
 public FilesController(IElevationDataStorage elevationDataStorage,
                        IHttpGatewayFactory httpGatewayFactory,
                        IDataContainerConverterService dataContainerConverterService,
                        LruCache <string, TokenAndSecret> cache)
 {
     _elevationDataStorage          = elevationDataStorage;
     _httpGatewayFactory            = httpGatewayFactory;
     _dataContainerConverterService = dataContainerConverterService;
     _cache = cache;
 }
 /// <summary>
 /// Controller's constructor
 /// </summary>
 /// <param name="elevationDataStorage"></param>
 /// <param name="remoteFileFetcherGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="cache"></param>
 public FilesController(IElevationDataStorage elevationDataStorage,
                        IRemoteFileFetcherGateway remoteFileFetcherGateway,
                        IDataContainerConverterService dataContainerConverterService,
                        LruCache <string, TokenAndSecret> cache)
 {
     _elevationDataStorage          = elevationDataStorage;
     _remoteFileFetcherGateway      = remoteFileFetcherGateway;
     _dataContainerConverterService = dataContainerConverterService;
     _cache = cache;
 }
Beispiel #20
0
 public void TestInitialize()
 {
     _elasticSearchGateway           = Substitute.For <IElasticSearchGateway>();
     _elevationDataStorage           = Substitute.For <IElevationDataStorage>();
     _httpGatewayFactory             = Substitute.For <IHttpGatewayFactory>();
     _tagsHelper                     = new TagsHelper(new OptionsWrapper <ConfigurationData>(new ConfigurationData()));
     _osmGeoJsonPreprocessorExecutor = new OsmGeoJsonPreprocessorExecutor(Substitute.For <ILogger>(), new OsmGeoJsonConverter(), _tagsHelper);
     _osmRepository                  = Substitute.For <IOsmRepository>();
     _dataContainerConverterService  = Substitute.For <IDataContainerConverterService>();
     _adapter = new OsmPointsOfInterestAdapter(_elasticSearchGateway, _elevationDataStorage, _httpGatewayFactory, _osmGeoJsonPreprocessorExecutor, _osmRepository, _dataContainerConverterService, _tagsHelper);
 }
 public void TestInitialize()
 {
     _gpsBabelGateway = Substitute.For<IGpsBabelGateway>();
     _elevationDataStorage = Substitute.For<IElevationDataStorage>();
     _remoteFileFetcherGateway = Substitute.For<IRemoteFileFetcherGateway>();
     var factory = Substitute.For<IHttpGatewayFactory>();
     factory.CreateRemoteFileFetcherGateway(Arg.Any<TokenAndSecret>()).Returns(_remoteFileFetcherGateway);
     _gpxDataContainerConverter = new GpxDataContainerConverter();
     _dataContainerConverterService = new DataContainerConverterService(_gpsBabelGateway, new GpxGeoJsonConverter(), _gpxDataContainerConverter, new RouteDataSplitterService(new CoordinatesConverter()));
     _controller = new FilesController(_elevationDataStorage, factory, _dataContainerConverterService, new LruCache<string, TokenAndSecret>());
 }
Beispiel #22
0
        public void TestInitialize()
        {
            _gpsBabelGateway           = Substitute.For <IGpsBabelGateway>();
            _elevationDataStorage      = Substitute.For <IElevationDataStorage>();
            _remoteFileFetcherGateway  = Substitute.For <IRemoteFileFetcherGateway>();
            _gpxDataContainerConverter = new GpxDataContainerConverter();
            var optionsProvider = Substitute.For <IOptions <ConfigurationData> >();

            optionsProvider.Value.Returns(new ConfigurationData());
            _dataContainerConverterService = new DataContainerConverterService(_gpsBabelGateway, _gpxDataContainerConverter, new RouteDataSplitterService(new ItmWgs84MathTransfromFactory(), optionsProvider), new IConverterFlowItem[0]);
            _controller = new FilesController(_elevationDataStorage, _remoteFileFetcherGateway, _dataContainerConverterService, null);
        }
Beispiel #23
0
 /// <summary>
 /// Controller's constructor
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="base64ImageConverter"></param>
 /// <param name="imgurGateway"></param>
 /// <param name="logger"></param>
 public UrlsController(IRepository repository,
                       IDataContainerConverterService dataContainerConverterService,
                       IBase64ImageStringToFileConverter base64ImageConverter,
                       IImgurGateway imgurGateway,
                       ILogger logger)
 {
     _repository = repository;
     _dataContainerConverterService = dataContainerConverterService;
     _base64ImageConverter          = base64ImageConverter;
     _imgurGateway = imgurGateway;
     _logger       = logger;
 }
 /// <summary>
 /// Constructor, make sure to use <see cref="SetFileName"/> after constructing this
 /// </summary>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="fileProvider"></param>
 /// <param name="remoteFileFetcherGateway"></param>
 /// <param name="logger"></param>
 public CsvPointsOfInterestAdapter(
     IDataContainerConverterService dataContainerConverterService,
     IFileProvider fileProvider,
     IRemoteFileFetcherGateway remoteFileFetcherGateway,
     ILogger logger
     ) :
     base(dataContainerConverterService,
          logger)
 {
     _fileProvider             = fileProvider;
     _remoteFileFetcherGateway = remoteFileFetcherGateway;
 }
 /// <inheritdoc />
 public WikipediaPointsOfInterestAdapter(IElevationDataStorage elevationDataStorage,
                                         IElasticSearchGateway elasticSearchGateway,
                                         IDataContainerConverterService dataContainerConverterService,
                                         IWikipediaGateway wikipediaGateway,
                                         IHttpGatewayFactory httpGatewayFactory,
                                         IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory,
                                         ILogger logger) :
     base(elevationDataStorage, elasticSearchGateway, dataContainerConverterService)
 {
     _wikipediaGateway             = wikipediaGateway;
     _logger                       = logger;
     _itmWgs84MathTransfromFactory = itmWgs84MathTransfromFactory;
     _remoteFileFetcherGateway     = httpGatewayFactory.CreateRemoteFileFetcherGateway(null);
 }
 /// <inheritdoc />
 public OsmPointsOfInterestAdapter(IElasticSearchGateway elasticSearchGateway,
                                   IElevationDataStorage elevationDataStorage,
                                   IHttpGatewayFactory httpGatewayFactory,
                                   IOsmGeoJsonPreprocessorExecutor osmGeoJsonPreprocessorExecutor,
                                   IOsmRepository osmRepository,
                                   IDataContainerConverterService dataContainerConverterService,
                                   ITagsHelper tagsHelper) : base(elevationDataStorage, elasticSearchGateway, dataContainerConverterService)
 {
     _elasticSearchGateway           = elasticSearchGateway;
     _httpGatewayFactory             = httpGatewayFactory;
     _osmGeoJsonPreprocessorExecutor = osmGeoJsonPreprocessorExecutor;
     _osmRepository = osmRepository;
     _tagsHelper    = tagsHelper;
 }
Beispiel #27
0
 /// <summary>
 /// Controller's constructor
 /// </summary>
 /// <param name="clientsFactory"></param>
 /// <param name="elevationDataStorage"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="options"></param>
 /// <param name="imageCreationService"></param>
 /// <param name="cache"></param>
 public OsmTracesController(IClientsFactory clientsFactory,
                            IElevationDataStorage elevationDataStorage,
                            IDataContainerConverterService dataContainerConverterService,
                            IOptions <ConfigurationData> options,
                            IImageCreationService imageCreationService,
                            LruCache <string, TokenAndSecret> cache)
 {
     _clientsFactory                = clientsFactory;
     _elevationDataStorage          = elevationDataStorage;
     _dataContainerConverterService = dataContainerConverterService;
     _imageCreationService          = imageCreationService;
     _options = options.Value;
     _cache   = cache;
 }
Beispiel #28
0
 /// <summary>
 /// Adapter's constructor
 /// </summary>
 /// <param name="elevationDataStorage"></param>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="itmWgs84MathTransfromFactory"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 protected BasePointsOfInterestAdapter(IElevationDataStorage elevationDataStorage,
                                       IElasticSearchGateway elasticSearchGateway,
                                       IDataContainerConverterService dataContainerConverterService,
                                       IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory,
                                       IOptions <ConfigurationData> options,
                                       ILogger logger)
 {
     _elevationDataStorage          = elevationDataStorage;
     _elasticSearchGateway          = elasticSearchGateway;
     _dataContainerConverterService = dataContainerConverterService;
     _wgs84ItmMathTransform         = itmWgs84MathTransfromFactory.CreateInverse();
     _options = options.Value;
     _logger  = logger;
 }
Beispiel #29
0
 public OsmController(IHttpGatewayFactory httpGatewayFactory,
     IDataContainerConverterService dataContainerConverterService,
     ICoordinatesConverter coordinatesConverter,
     IGpxSplitterService gpxSplitterService,
     IElasticSearchGateway elasticSearchGateway,
     LruCache<string, TokenAndSecret> cache)
 {
     _httpGatewayFactory = httpGatewayFactory;
     _dataContainerConverterService = dataContainerConverterService;
     _coordinatesConverter = coordinatesConverter;
     _gpxSplitterService = gpxSplitterService;
     _cache = cache;
     _elasticSearchGateway = elasticSearchGateway;
 }
Beispiel #30
0
 public void TestInitialize()
 {
     _httpGatewayFactory = Substitute.For<IHttpGatewayFactory>();
     _dataContainerConverterService = Substitute.For<IDataContainerConverterService>();
     _elasticSearchGateway = Substitute.For<IElasticSearchGateway>();
     _addibleGpxLinesFinderService = Substitute.For<IAddibleGpxLinesFinderService>();
     _osmLineAdderService = Substitute.For<IOsmLineAdderService>();
     _options = new ConfigurationData();
     var optionsProvider = Substitute.For<IOptions<ConfigurationData>>();
     optionsProvider.Value.Returns(_options);
     _controller = new OsmController(_httpGatewayFactory, _dataContainerConverterService, ItmWgs84MathTransfromFactory.Create(), 
         _elasticSearchGateway, _addibleGpxLinesFinderService, _osmLineAdderService, optionsProvider, GeometryFactory.Default,
         new LruCache<string, TokenAndSecret>(optionsProvider, Substitute.For<ILogger>()));
 }
Beispiel #31
0
        public void TestInitialize()
        {
            _gpsBabelGateway          = Substitute.For <IGpsBabelGateway>();
            _elevationDataStorage     = Substitute.For <IElevationDataStorage>();
            _remoteFileFetcherGateway = Substitute.For <IRemoteFileFetcherGateway>();
            var factory = Substitute.For <IHttpGatewayFactory>();

            factory.CreateRemoteFileFetcherGateway(Arg.Any <TokenAndSecret>()).Returns(_remoteFileFetcherGateway);
            _gpxDataContainerConverter = new GpxDataContainerConverter();
            var optionsProvider = Substitute.For <IOptions <ConfigurationData> >();

            optionsProvider.Value.Returns(new ConfigurationData());
            _dataContainerConverterService = new DataContainerConverterService(_gpsBabelGateway, _gpxDataContainerConverter, new RouteDataSplitterService(new ItmWgs84MathTransfromFactory(), optionsProvider), new IConverterFlowItem[0]);
            _controller = new FilesController(_elevationDataStorage, factory, _dataContainerConverterService, new LruCache <string, TokenAndSecret>(optionsProvider, Substitute.For <ILogger>()));
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="nakebGateway"></param>
 /// <param name="elevationDataStorage"></param>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="itmWgs84MathTransfromFactory"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 public NakebPointsOfInterestAdapter(INakebGateway nakebGateway,
                                     IElevationDataStorage elevationDataStorage,
                                     IElasticSearchGateway elasticSearchGateway,
                                     IDataContainerConverterService dataContainerConverterService,
                                     IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory,
                                     IOptions <ConfigurationData> options,
                                     ILogger logger) :
     base(elevationDataStorage,
          elasticSearchGateway,
          dataContainerConverterService,
          itmWgs84MathTransfromFactory,
          options,
          logger)
 {
     _nakebGateway = nakebGateway;
 }
Beispiel #33
0
        /// <summary>
        /// Controller's constructor
        /// </summary>
        /// <param name="elasticSearchGateway"></param>
        /// <param name="dataContainerConverterService"></param>
        /// <param name="elevationDataStorage"></param>
        /// <param name="itmWgs84MathTransform"></param>
        public SearchController(IElasticSearchGateway elasticSearchGateway,
                                IDataContainerConverterService dataContainerConverterService,
                                IElevationDataStorage elevationDataStorage,
                                IMathTransform itmWgs84MathTransform)
        {
            _elasticSearchGateway          = elasticSearchGateway;
            _dataContainerConverterService = dataContainerConverterService;
            _elevationDataStorage          = elevationDataStorage;

            _coordinatesParsers = new List <ICoordinatesParser>
            {
                new ReverseDegreesMinutesSecondsLatLonParser(),
                new DegreesMinutesSecondsLatLonParser(),
                new DecimalLatLonParser(),
                new UtmParser(itmWgs84MathTransform)
            };
        }
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="elevationDataStorage"></param>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="wikipediaGateway"></param>
 /// <param name="itmWgs84MathTransfromFactory"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 public WikipediaPointsOfInterestAdapter(IElevationDataStorage elevationDataStorage,
                                         IElasticSearchGateway elasticSearchGateway,
                                         IDataContainerConverterService dataContainerConverterService,
                                         IWikipediaGateway wikipediaGateway,
                                         IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory,
                                         IOptions <ConfigurationData> options,
                                         ILogger logger) :
     base(elevationDataStorage,
          elasticSearchGateway,
          dataContainerConverterService,
          itmWgs84MathTransfromFactory,
          options,
          logger)
 {
     _wikipediaGateway             = wikipediaGateway;
     _itmWgs84MathTransfromFactory = itmWgs84MathTransfromFactory;
 }
Beispiel #35
0
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="elevationDataStorage"></param>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="iNatureGateway"></param>
 /// <param name="repository"></param>
 /// <param name="itmWgs84MathTransfromFactory"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 public INaturePointsOfInterestAdapter(IElevationDataStorage elevationDataStorage,
                                       IElasticSearchGateway elasticSearchGateway,
                                       IDataContainerConverterService dataContainerConverterService,
                                       IINatureGateway iNatureGateway,
                                       IRepository repository,
                                       IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory,
                                       IOptions <ConfigurationData> options,
                                       ILogger logger) :
     base(elevationDataStorage,
          elasticSearchGateway,
          dataContainerConverterService,
          itmWgs84MathTransfromFactory,
          options,
          logger)
 {
     _iNatureGateway = iNatureGateway;
     _repository     = repository;
 }
Beispiel #36
0
 /// <summary>
 /// Controller's constructor
 /// </summary>
 /// <param name="httpGatewayFactory"></param>
 /// <param name="dataContainerConverterService"></param>
 /// <param name="itmWgs84MathTransform"></param>
 /// <param name="elasticSearchGateway"></param>
 /// <param name="addibleGpxLinesFinderService"></param>
 /// <param name="osmLineAdderService"></param>
 /// <param name="options"></param>
 /// <param name="geometryFactory"></param>
 /// <param name="cache"></param>
 public OsmController(IHttpGatewayFactory httpGatewayFactory,
                      IDataContainerConverterService dataContainerConverterService,
                      IMathTransform itmWgs84MathTransform,
                      IElasticSearchGateway elasticSearchGateway,
                      IAddibleGpxLinesFinderService addibleGpxLinesFinderService,
                      IOsmLineAdderService osmLineAdderService,
                      IOptions <ConfigurationData> options,
                      IGeometryFactory geometryFactory,
                      LruCache <string, TokenAndSecret> cache)
 {
     _httpGatewayFactory            = httpGatewayFactory;
     _dataContainerConverterService = dataContainerConverterService;
     _itmWgs84MathTransform         = itmWgs84MathTransform;
     _elasticSearchGateway          = elasticSearchGateway;
     _addibleGpxLinesFinderService  = addibleGpxLinesFinderService;
     _osmLineAdderService           = osmLineAdderService;
     _options         = options.Value;
     _geometryFactory = geometryFactory;
     _cache           = cache;
 }