public static void CheckProperties(GoogleMapSettings settings, bool assumeInitialConfig = false)
 {
     TestUtilities.TestProperty(settings, r => r.InitialMapLatitude, 51.47, 90.1);
     TestUtilities.TestProperty(settings, r => r.InitialMapLongitude, -0.6, 29.10);
     TestUtilities.TestProperty(settings, r => r.InitialMapType, "ROADMAP", "TERRAIN");
     TestUtilities.TestProperty(settings, r => r.InitialMapZoom, 11, 2);
     TestUtilities.TestProperty(settings, r => r.InitialRefreshSeconds, 1, 12);
     TestUtilities.TestProperty(settings, r => r.InitialSettings, null, "Abc123");
     TestUtilities.TestProperty(settings, r => r.MinimumRefreshSeconds, 1, 22);
     TestUtilities.TestProperty(settings, r => r.ShortTrailLengthSeconds, 30, 600);
     TestUtilities.TestProperty(settings, r => r.InitialDistanceUnit, DistanceUnit.NauticalMiles, DistanceUnit.Kilometres);
     TestUtilities.TestProperty(settings, r => r.InitialHeightUnit, HeightUnit.Feet, HeightUnit.Metres);
     TestUtilities.TestProperty(settings, r => r.InitialSpeedUnit, SpeedUnit.Knots, SpeedUnit.MilesPerHour);
     TestUtilities.TestProperty(settings, r => r.PreferIataAirportCodes, true);
     TestUtilities.TestProperty(settings, r => r.EnableBundling, true);
     TestUtilities.TestProperty(settings, r => r.EnableMinifying, true);
     TestUtilities.TestProperty(settings, r => r.EnableCompression, true);
     TestUtilities.TestProperty(settings, r => r.WebSiteReceiverId, assumeInitialConfig ? 1 : 0, 123);
     TestUtilities.TestProperty(settings, r => r.ClosestAircraftReceiverId, assumeInitialConfig ? 1 : 0, 456);
     TestUtilities.TestProperty(settings, r => r.FlightSimulatorXReceiverId, assumeInitialConfig ? 1 : 0, 789);
     TestUtilities.TestProperty(settings, r => r.ProxyType, ProxyType.Unknown, ProxyType.Forward);
     TestUtilities.TestProperty(settings, r => r.DirectoryEntryKey, null, "ABC123");
     TestUtilities.TestProperty(settings, r => r.EnableCorsSupport, false);
     TestUtilities.TestProperty(settings, r => r.AllowCorsDomains, null, "a.b.com");
     TestUtilities.TestProperty(settings, r => r.GoogleMapsApiKey, null, "Key");
     TestUtilities.TestProperty(settings, r => r.UseGoogleMapsAPIKeyWithLocalRequests, false);
     TestUtilities.TestProperty(settings, r => r.UseSvgGraphicsOnDesktop, true);
     TestUtilities.TestProperty(settings, r => r.UseSvgGraphicsOnMobile, true);
     TestUtilities.TestProperty(settings, r => r.UseSvgGraphicsOnReports, true);
     TestUtilities.TestProperty(settings, r => r.MapProvider, MapProvider.Leaflet, MapProvider.GoogleMaps);
     TestUtilities.TestProperty(settings, r => r.TileServerSettingName, null, "A tile server");
 }
Example #2
0
 public static void CheckProperties(GoogleMapSettings settings)
 {
     TestUtilities.TestProperty(settings, r => r.InitialMapLatitude, 51.47, 90.1);
     TestUtilities.TestProperty(settings, r => r.InitialMapLongitude, -0.6, 29.10);
     TestUtilities.TestProperty(settings, r => r.InitialMapType, "ROADMAP", "TERRAIN");
     TestUtilities.TestProperty(settings, r => r.InitialMapZoom, 11, 2);
     TestUtilities.TestProperty(settings, r => r.InitialRefreshSeconds, 1, 12);
     TestUtilities.TestProperty(settings, r => r.MinimumRefreshSeconds, 1, 22);
     TestUtilities.TestProperty(settings, r => r.ShortTrailLengthSeconds, 30, 600);
     TestUtilities.TestProperty(settings, r => r.InitialDistanceUnit, DistanceUnit.NauticalMiles, DistanceUnit.Kilometres);
     TestUtilities.TestProperty(settings, r => r.InitialHeightUnit, HeightUnit.Feet, HeightUnit.Metres);
     TestUtilities.TestProperty(settings, r => r.InitialSpeedUnit, SpeedUnit.Knots, SpeedUnit.MilesPerHour);
     TestUtilities.TestProperty(settings, r => r.PreferIataAirportCodes, false);
 }
 public void TestInitialise()
 {
     _Implementation = new GoogleMapSettings();
 }