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>
21 lines
813 B
C#
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);
|
|
}
|