public void GetAllTest()
        {
            ServicePreparation(out IOptions <HereAPICredentials> hereApiCredentialsOptions, out JsonRouteRepository jsonRepository, out Mock <IHttpClientFactory> httpClientFactoryMoq);

            var service = new RouteMatchingService(jsonRepository, httpClientFactoryMoq.Object, hereApiCredentialsOptions, new JsonRouteToGpxAdaptor());
            var routes  = service.GetAll();

            Assert.NotEmpty(routes);
        }
        public async Task MatchRouteTest()
        {
            ServicePreparation(out IOptions <HereAPICredentials> hereApiCredentialsOptions, out JsonRouteRepository jsonRepository, out Mock <IHttpClientFactory> httpClientFactoryMoq);

            var service  = new RouteMatchingService(jsonRepository, httpClientFactoryMoq.Object, hereApiCredentialsOptions, new JsonRouteToGpxAdaptor());
            var response = await service.MatchRoute(service.Get(1));

            Assert.NotNull(response);
            Assert.NotEmpty(response.TracePoints);
        }
        public void GetTest()
        {
            ServicePreparation(out IOptions <HereAPICredentials> hereApiCredentialsOptions, out JsonRouteRepository jsonRepository, out Mock <IHttpClientFactory> httpClientFactoryMoq);

            var service = new RouteMatchingService(jsonRepository, httpClientFactoryMoq.Object, hereApiCredentialsOptions, new JsonRouteToGpxAdaptor());
            var route   = service.Get(1);

            Assert.NotNull(route);
            Assert.Equal(1, route.Waypoints[0].UnitId);
        }