Implement applicant pool functionality in school simulation, allowing for the management of job seekers who are not yet part of the school roster. Update the catalog to include staffing definitions and enhance the API to support applicant data retrieval. Revise the school architecture to handle applicant refresh logic and ensure proper integration with existing roster management. Update tests to validate the new applicant functionalities and ensure robustness in handling staffing scenarios.

This commit is contained in:
Leonid Pershin
2026-08-19 00:01:56 +03:00
parent 65feda3756
commit c189578680
31 changed files with 541 additions and 120 deletions
+3 -4
View File
@@ -45,16 +45,15 @@ public class ReviewFixTests
}
[Fact]
public void StaffTopUp_LeavesNobodyWithoutARole()
public void RosterWithoutStaff_LeavesNobodyWithoutARole()
{
// More posts than the pupils' parents can fill, and an odd deficit: the old top-up added
// two adults per opening and the spare one ended up neither staff, parent nor pupil.
var roster = Fixtures.Generate(Fixtures.PostHeavyMap());
Assert.DoesNotContain(roster.People, person => person.IsStaff);
Assert.All(
roster.People,
person => Assert.True(
person.IsStudent || person.IsStaff || person.IsParent,
person.IsStudent || person.IsParent,
$"{person.Id} ({person.Name.Full}) has no role at all"));
}