OpenDataVisualizer/Schaad.OpenData.Tests/WatercraftTestData.cs
Claudio Schaad 39a62255af Add Thurgau watercraft map (#2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
2026-11-06 21:10:01 +00:00

21 lines
813 B
C#

using Schaad.OpenData.Watercraft.Models;
namespace Schaad.OpenData.Tests;
public static class WatercraftTestData
{
public static Vessel Vessel(
string location = "Arbon",
string? type = "Motorschiff",
double? lengthCm = 650,
double? powerKw = 100,
string? fuel = "Benzin",
double? sailAreaM2 = 0,
string? emission = null,
string? specialUse = null,
string? propulsion = "Aussenbordmotor") =>
new(location, type, specialUse, lengthCm, 240, sailAreaM2, propulsion, powerKw is null ? null : 1, powerKw, fuel, emission);
public static VesselYear Year(int year, params Vessel[] vessels) =>
new(year, $"djs-kpo-{year}", new DateTimeOffset(year + 1, 4, 1, 0, 0, 0, TimeSpan.Zero), new DateOnly(year, 12, 31), vessels);
}