/// <summary> /// Service's constructor /// </summary> /// <param name="clinetsFactory"></param> /// <param name="elasticSearchGateway"></param> /// <param name="osmGeoJsonPreprocessorExecutor"></param> /// <param name="tagsHelper"></param> /// <param name="osmRepository"></param> /// <param name="pointsOfInterestAdapterFactory"></param> /// <param name="featuresMergeExecutor"></param> /// <param name="latestFileFetcherExecutor"></param> /// <param name="graphHopperGateway"></param> /// <param name="pointsOfInterestFilesCreatorExecutor"></param> /// <param name="elevationDataStorage"></param> /// <param name="itmWgs84MathTransfromFactory"></param> /// <param name="logger"></param> public DatabasesUpdaterService(IClientsFactory clinetsFactory, IElasticSearchGateway elasticSearchGateway, IOsmGeoJsonPreprocessorExecutor osmGeoJsonPreprocessorExecutor, ITagsHelper tagsHelper, IOsmRepository osmRepository, IPointsOfInterestAdapterFactory pointsOfInterestAdapterFactory, IFeaturesMergeExecutor featuresMergeExecutor, IOsmLatestFileFetcherExecutor latestFileFetcherExecutor, IGraphHopperGateway graphHopperGateway, IPointsOfInterestFilesCreatorExecutor pointsOfInterestFilesCreatorExecutor, IElevationDataStorage elevationDataStorage, IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory, ILogger logger) { _elasticSearchGateway = elasticSearchGateway; _osmGeoJsonPreprocessorExecutor = osmGeoJsonPreprocessorExecutor; _tagsHelper = tagsHelper; _osmRepository = osmRepository; _pointsOfInterestAdapterFactory = pointsOfInterestAdapterFactory; _pointsOfInterestFilesCreatorExecutor = pointsOfInterestFilesCreatorExecutor; _featuresMergeExecutor = featuresMergeExecutor; _latestFileFetcherExecutor = latestFileFetcherExecutor; _graphHopperGateway = graphHopperGateway; _osmGateway = clinetsFactory.CreateNonAuthClient(); _elevationDataStorage = elevationDataStorage; _logger = logger; _mathTransform = itmWgs84MathTransfromFactory.CreateInverse(); }
/// <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; }
/// <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; }
public void TestInitialize() { _nakebGateway = Substitute.For <INakebGateway>(); _elevationDataStorage = Substitute.For <IElevationDataStorage>(); _elasticSearchGateway = Substitute.For <IElasticSearchGateway>(); _adapter = new NakebPointsOfInterestAdapter(_nakebGateway, _elevationDataStorage, _elasticSearchGateway, Substitute.For <IDataContainerConverterService>(), Substitute.For <ILogger>()); }
public RoutingController(IRoutingGateway routingGateway, IElevationDataStorage elevationDataStorage, ILogger logger) { _routingGateway = routingGateway; _elevationDataStorage = elevationDataStorage; _logger = logger; }
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; }
public void TestInitialize() { ILogger logger = Substitute.For<ILogger>(); _gpsBabelGateway = Substitute.For<IGpsBabelGateway>(); _elevationDataStorage = Substitute.For<IElevationDataStorage>(); _removeFileFetcherGateway = Substitute.For<IRemoteFileFetcherGateway>(); _controller = new ConvertFilesController(logger, _gpsBabelGateway, _elevationDataStorage, _removeFileFetcherGateway); }
/// <summary> /// Constructor /// </summary> /// <param name="nakebGateway"></param> /// <param name="elevationDataStorage"></param> /// <param name="elasticSearchGateway"></param> /// <param name="logger"></param> public NakebPointsOfInterestAdapter(INakebGateway nakebGateway, IElevationDataStorage elevationDataStorage, IElasticSearchGateway elasticSearchGateway, ILogger logger) : base(elevationDataStorage, elasticSearchGateway) { _nakebGateway = nakebGateway; _logger = logger; }
/// <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; }
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()); }
/// <inheritdoc /> public OffRoadPointsOfInterestAdapter(IElevationDataStorage elevationDataStorage, IElasticSearchGateway elasticSearchGateway, IOffRoadGateway offRoadGateway, ILogger logger) : base(elevationDataStorage, elasticSearchGateway) { _offRoadGateway = offRoadGateway; _logger = logger; }
public ConvertFilesController(ILogger logger, IGpsBabelGateway gpsBabelGateway, IElevationDataStorage elevationDataStorage, IRemoveFileFetcherGateway remoteFileFetcher) { _gpsBabelGateway = gpsBabelGateway; _logger = logger; _elevationDataStorage = elevationDataStorage; _remoteFileFetcher = remoteFileFetcher; }
/// <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> /// 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; }
/// <summary> /// Controller's constructor /// </summary> /// <param name="graphHopperGateway"></param> /// <param name="elevationDataStorage"></param> /// <param name="itmWgs84MathTransfromFactory"></param> /// <param name="geometryFactory"></param> public RoutingController(IGraphHopperGateway graphHopperGateway, IElevationDataStorage elevationDataStorage, IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory, GeometryFactory geometryFactory) { _graphHopperGateway = graphHopperGateway; _elevationDataStorage = elevationDataStorage; _geometryFactory = geometryFactory; _wgs84ItmMathTransform = itmWgs84MathTransfromFactory.CreateInverse(); }
/// <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; }
/// <inheritdoc /> public OffRoadPointsOfInterestAdapter(IElevationDataStorage elevationDataStorage, IElasticSearchGateway elasticSearchGateway, IOffRoadGateway offRoadGateway, IDataContainerConverterService dataContainerConverterService, ILogger logger) : base(elevationDataStorage, elasticSearchGateway, dataContainerConverterService) { _offRoadGateway = offRoadGateway; _logger = logger; }
public FilesController(IElevationDataStorage elevationDataStorage, IHttpGatewayFactory httpGatewayFactory, IDataContainerConverterService dataContainerConverterService, LruCache<string, TokenAndSecret> cache) { _elevationDataStorage = elevationDataStorage; _httpGatewayFactory = httpGatewayFactory; _dataContainerConverterService = dataContainerConverterService; _cache = cache; }
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>()); }
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); }
/// <summary> /// Constructor /// </summary> /// <param name="logger"></param> /// <param name="elevationDataStorage"></param> /// <param name="itmWgs84MathTransfromFactory"></param> /// <param name="osmGeoJsonConverter"></param> /// <param name="tagsHelper"></param> public OsmGeoJsonPreprocessorExecutor(ILogger logger, IElevationDataStorage elevationDataStorage, IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory, IOsmGeoJsonConverter osmGeoJsonConverter, ITagsHelper tagsHelper) { _logger = logger; _osmGeoJsonConverter = osmGeoJsonConverter; _elevationDataStorage = elevationDataStorage; _wgs84ItmConverter = itmWgs84MathTransfromFactory.CreateInverse(); _tagsHelper = tagsHelper; }
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); }
/// <summary> /// Class constructor /// </summary> /// <param name="adaptersFactory"></param> /// <param name="elevationDataStorage"></param> /// <param name="elasticSearchGateway"></param> /// <param name="itmWgs84MathTransfromFactory"></param> /// <param name="logger"></param> public ExternalSourcesController(IPointsOfInterestAdapterFactory adaptersFactory, IElevationDataStorage elevationDataStorage, IElasticSearchGateway elasticSearchGateway, IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory, ILogger logger) { _adaptersFactory = adaptersFactory; _elevationDataStorage = elevationDataStorage; _elasticSearchGateway = elasticSearchGateway; _wgs84ItmTransform = itmWgs84MathTransfromFactory.CreateInverse(); _logger = logger; }
/// <inheritdoc /> public OsmPointsOfInterestAdapter(IElasticSearchGateway elasticSearchGateway, IElevationDataStorage elevationDataStorage, IHttpGatewayFactory httpGatewayFactory, IOsmGeoJsonPreprocessorExecutor osmGeoJsonPreprocessorExecutor, IOsmRepository osmRepository, ITagsHelper tagsHelper) : base(elevationDataStorage, elasticSearchGateway) { _elasticSearchGateway = elasticSearchGateway; _httpGatewayFactory = httpGatewayFactory; _osmGeoJsonPreprocessorExecutor = osmGeoJsonPreprocessorExecutor; _osmRepository = osmRepository; _tagsHelper = tagsHelper; }
/// <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); }
/// <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; }
/// <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; }
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; }
/// <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; }
/// <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; }
/// <summary> /// Constructor, make sure to use <see cref="SetFileName"/> after constructing this /// </summary> /// <param name="elevationDataStorage"></param> /// <param name="elasticSearchGateway"></param> /// <param name="dataContainerConverterService"></param> /// <param name="itmWgs84MathTransfromFactory"></param> /// <param name="fileProvider"></param> /// <param name="httpGatewayFactory"></param> /// <param name="options"></param> /// <param name="logger"></param> public CsvPointsOfInterestAdapter( IElevationDataStorage elevationDataStorage, IElasticSearchGateway elasticSearchGateway, IDataContainerConverterService dataContainerConverterService, IItmWgs84MathTransfromFactory itmWgs84MathTransfromFactory, IFileProvider fileProvider, IHttpGatewayFactory httpGatewayFactory, IOptions <ConfigurationData> options, ILogger logger ) : base(elevationDataStorage, elasticSearchGateway, dataContainerConverterService, itmWgs84MathTransfromFactory, options, logger) { _fileProvider = fileProvider; _remoteFileFetcherGateway = httpGatewayFactory.CreateRemoteFileFetcherGateway(null); }
/// <summary> /// Controller's constructor /// </summary> /// <param name="graphHopperGateway"></param> /// <param name="elevationDataStorage"></param> public RoutingController(IGraphHopperGateway graphHopperGateway, IElevationDataStorage elevationDataStorage) { _graphHopperGateway = graphHopperGateway; _elevationDataStorage = elevationDataStorage; }
public void TestInitialize() { _routingGateway = Substitute.For<IRoutingGateway>(); _elevationDataStorage = Substitute.For<IElevationDataStorage>(); _controller = new RoutingController(_routingGateway, _elevationDataStorage); }
public ElevationController(IElevationDataStorage elevationDataStorage) { _elevationDataStorage = elevationDataStorage; }
public RoutingController(IRoutingGateway routingGateway, IElevationDataStorage elevationDataStorage) { _routingGateway = routingGateway; _elevationDataStorage = elevationDataStorage; }
/// <summary> /// Controller's constructor /// </summary> /// <param name="elevationDataStorage"></param> public ElevationController(IElevationDataStorage elevationDataStorage) { _elevationDataStorage = elevationDataStorage; }