using Azaion.Common.DTO.Config; using Azaion.Common.Services; using Azaion.CommonSecurity.DTO; 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 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); await satelliteDownloader.GetTiles(48.2748909, 37.3834877, 600, 18); } }