Beispiel #1
0
        /// <inheritdoc />
        public async Task <List <Feature> > GetPointsForIndexing(Stream memoryStream)
        {
            _logger.LogInformation("Getting data from Off-road.");
            var features = await _offRoadGateway.GetAll();

            _logger.LogInformation($"Got {features.Count} routes from Off-road.");
            return(features);
        }
Beispiel #2
0
        public void GetPointsForIndexing_ShouldGetAllPointsFromGateway()
        {
            var featuresList = new List <Feature> {
                new Feature(null, null)
            };

            _offRoadGateway.GetAll().Returns(featuresList);

            var points = _adapter.GetPointsForIndexing().Result;

            Assert.AreEqual(featuresList.Count, points.Count);
        }