Untis-API Optimierung.

This commit is contained in:
2026-08-24 22:33:30 +02:00
parent 1db16f8b69
commit 17475a781f
9 changed files with 109 additions and 53 deletions
@@ -37,6 +37,20 @@ public sealed class WebUntisStudentReportParserTests
Assert.Equal("MUS\"T", student.DisplayName);
}
[Fact]
public void Parse_AkzeptiertIsoDatumswerteOhneTrennzeichen()
{
const string report = "id\texternKey\tklasse.name\tbirthDate\tentryDate\texitDate\r\n" +
"17\t9001\t10a\t20100203\t20210801\t20270731\r\n";
var student = Assert.Single(WebUntisStudentReportParser.Parse(report));
Assert.Equal(20100203, student.BirthDate);
Assert.Equal("20100203", student.BirthDateRaw);
Assert.Equal(20210801, student.EntryDate);
Assert.Equal(20270731, student.ExitDate);
}
[Fact]
public void Parse_LehntUngueltigePflichtIdAb()
{