Wire grade trail notices, dress mark factor, and truancy summons weights.

Lesson multipliers stay explicit in tests; poor marks and unexcused absences toast and may auto-summon, while illness stays excused.
This commit is contained in:
Leonid Pershin
2026-08-21 14:18:41 +03:00
parent 975ca4936e
commit 59a7023bc4
23 changed files with 762 additions and 13 deletions
@@ -45,6 +45,18 @@ public class GradebookApiTests(AppHostFixture fixture)
new { subject = "Mathematics", status = "present", period = 1 },
TestContext.Current.CancellationToken);
Assert.Equal(HttpStatusCode.NotFound, attendancePut.StatusCode);
using var summonPost = await client.PostAsJsonAsync(
$"/api/schools/{school.Id}/people/{personId}/summon",
new { reason = "mark", value = 2 },
TestContext.Current.CancellationToken);
Assert.Equal(HttpStatusCode.NotFound, summonPost.StatusCode);
using var summonForMark = await client.PostAsJsonAsync(
$"/api/schools/{school.Id}/people/{personId}/summon-for-mark",
new { value = 2 },
TestContext.Current.CancellationToken);
Assert.Equal(HttpStatusCode.NotFound, summonForMark.StatusCode);
}
[Fact]