using Azaion.Common.DTO; using Azaion.Common.DTO.Config; using Azaion.Common.Services; using MediatR; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using Xunit; namespace Azaion.Annotator.Test; public class GetTilesTestClass { [Fact] public void TestPath() { var filename = "./input/images-scaled\\AD000010.tif"; filename = Path.GetFileName(filename); } [Fact] public async Task GetTilesTest() { var services = new ServiceCollection(); services.AddHttpClient(); var provider = services.BuildServiceProvider(); var httpClientFactory = provider.GetService()!; var satelliteDownloader = new SatelliteDownloader(Mock.Of>(), new OptionsWrapper(new MapConfig { Service = "GoogleMaps", ApiKey = "AIzaSyAXRBDBOskC5QOHG6VJWzmVJwYKcu6WH8k" }), new OptionsWrapper(new DirectoriesConfig { GpsSatDirectory = "satelliteMaps" }), httpClientFactory, Mock.Of()); await satelliteDownloader.GetTiles(new GeoPoint(48.2748909, 37.3834877), 600, 18); } }