mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 11:51:13 +00:00
853b0a63df
- Add SatelliteProvider.DataAccess project reference to test csproj
(enables mocking ITileRepository / IRegionRepository / IRouteRepository)
- Replace DummyTest placeholder with InfrastructureTests covering:
* All mockable interfaces (ISatelliteDownloader, repos, queue, services)
can be mocked via Moq
* TileService can be constructed with mocked dependencies
* Test coordinate fixtures load with expected values
- Add Fixtures/TestCoordinates.cs with REG-01..REG-03 + ROUTE-01/04/06
shared test data
- Archive AZ-285 to _docs/02_tasks/done/
- Batch 1 review report: PASS_WITH_WARNINGS (Low/Spec-Gap deferred AC-2,
Low/Maintainability pre-existing FluentAssertions 8.x license note)
Verification: docker dotnet test run — 4/4 tests pass in 2.35s.
Co-authored-by: Cursor <cursoragent@cursor.com>
72 lines
2.8 KiB
C#
72 lines
2.8 KiB
C#
using SatelliteProvider.Common.DTO;
|
|
|
|
namespace SatelliteProvider.Tests.Fixtures;
|
|
|
|
public static class TestCoordinates
|
|
{
|
|
public const double TileLat = 47.461747;
|
|
public const double TileLon = 37.647063;
|
|
public const int DefaultZoom = 18;
|
|
|
|
public static GeoPoint TileCenter => new(TileLat, TileLon);
|
|
|
|
public static class Region
|
|
{
|
|
public static (double Lat, double Lon, double SizeMeters, int Zoom, bool Stitch) Reg01 =>
|
|
(47.461747, 37.647063, 200, 18, false);
|
|
|
|
public static (double Lat, double Lon, double SizeMeters, int Zoom, bool Stitch) Reg02 =>
|
|
(47.461747, 37.647063, 400, 17, false);
|
|
|
|
public static (double Lat, double Lon, double SizeMeters, int Zoom, bool Stitch) Reg03 =>
|
|
(47.461747, 37.647063, 500, 18, true);
|
|
}
|
|
|
|
public static class Route
|
|
{
|
|
public static List<(double Lat, double Lon)> Route01Points => new()
|
|
{
|
|
(48.276067180586544, 37.38445758819581),
|
|
(48.27074009522731, 37.374029159545906),
|
|
};
|
|
|
|
public static List<(double Lat, double Lon)> Route04Points => new()
|
|
{
|
|
(48.276067180586544, 37.38445758819581),
|
|
(48.27074009522731, 37.374029159545906),
|
|
(48.263312668696855, 37.37707614898682),
|
|
(48.26539817051818, 37.36587524414063),
|
|
(48.25851283439989, 37.35952377319337),
|
|
(48.254426906081555, 37.374801635742195),
|
|
(48.25914140977405, 37.39068031311036),
|
|
(48.25354110233028, 37.401752471923835),
|
|
(48.25902712391726, 37.416257858276374),
|
|
(48.26828345053738, 37.402009963989265),
|
|
};
|
|
|
|
public static List<(double Lat, double Lon)> Route06Points => new()
|
|
{
|
|
(48.276067180586544, 37.51945758819581),
|
|
(48.27074009522731, 37.509029159545906),
|
|
(48.263312668696855, 37.51207614898682),
|
|
(48.26539817051818, 37.50087524414063),
|
|
(48.25851283439989, 37.49452377319337),
|
|
(48.254426906081555, 37.509801635742195),
|
|
(48.25914140977405, 37.52568031311036),
|
|
(48.25354110233028, 37.536752471923835),
|
|
(48.25902712391726, 37.551257858276374),
|
|
(48.26828345053738, 37.537009963989265),
|
|
(48.27421563182974, 37.52345758819581),
|
|
(48.26889854647051, 37.513029159545906),
|
|
(48.26147111993905, 37.51607614898682),
|
|
(48.26355662176038, 37.50487524414063),
|
|
(48.25667128564209, 37.49852377319337),
|
|
(48.25258535732375, 37.513801635742195),
|
|
(48.25729986101625, 37.52968031311036),
|
|
(48.25169955357248, 37.540752471923835),
|
|
(48.25718557515946, 37.555257858276374),
|
|
(48.26644190177958, 37.541009963989265),
|
|
};
|
|
}
|
|
}
|