Replace selectable name sets with a country that owns names and climate presets.
Create picks a country; climate is rolled from the school seed and stored. Old Slavic saves lift as Russia. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,7 +17,7 @@ public class ApplicantPoolTests
|
||||
{
|
||||
var roster = Fixtures.Generate(Fixtures.VanillaMap());
|
||||
var first = Create(roster);
|
||||
var next = first.Advance(Fixtures.Catalog(), roster, Fixtures.SchoolSeed, "Slavic", Fixtures.AsOf.AddDays(7));
|
||||
var next = first.Advance(Fixtures.Catalog(), roster, Fixtures.SchoolSeed, "Russia", Fixtures.AsOf.AddDays(7));
|
||||
|
||||
Assert.NotEqual(first.Week, next.Week);
|
||||
var stayed = first.Applicants
|
||||
@@ -45,12 +45,12 @@ public class ApplicantPoolTests
|
||||
var roster = Fixtures.Generate(Fixtures.VanillaMap());
|
||||
var size = catalog.StaffingRules!.PoolSize;
|
||||
var asOf = Fixtures.AsOf;
|
||||
var pool = ApplicantPool.Create(catalog, roster, Fixtures.SchoolSeed, "Slavic", asOf);
|
||||
var pool = ApplicantPool.Create(catalog, roster, Fixtures.SchoolSeed, "Russia", asOf);
|
||||
|
||||
for (var week = 0; week < 50; week++)
|
||||
{
|
||||
asOf = asOf.AddDays(7);
|
||||
pool = pool.Advance(catalog, roster, Fixtures.SchoolSeed, "Slavic", asOf);
|
||||
pool = pool.Advance(catalog, roster, Fixtures.SchoolSeed, "Russia", asOf);
|
||||
Assert.Equal(size, pool.Applicants.Count);
|
||||
}
|
||||
}
|
||||
@@ -94,7 +94,7 @@ public class ApplicantPoolTests
|
||||
for (var seed = 1; seed <= 20 && pool is null; seed++)
|
||||
{
|
||||
var candidate = Fixtures.Generate(Fixtures.VanillaMap(), seed);
|
||||
var created = ApplicantPool.Create(Fixtures.Catalog(), candidate, seed, "Slavic", Fixtures.AsOf);
|
||||
var created = ApplicantPool.Create(Fixtures.Catalog(), candidate, seed, "Russia", Fixtures.AsOf);
|
||||
if (created.Applicants.Any(applicant => candidate.People.Any(person => person.Id == applicant.Person.Id)))
|
||||
{
|
||||
roster = candidate;
|
||||
@@ -132,7 +132,7 @@ public class ApplicantPoolTests
|
||||
}
|
||||
|
||||
private static ApplicantPool Create(Roster roster) =>
|
||||
ApplicantPool.Create(Fixtures.Catalog(), roster, Fixtures.SchoolSeed, "Slavic", Fixtures.AsOf);
|
||||
ApplicantPool.Create(Fixtures.Catalog(), roster, Fixtures.SchoolSeed, "Russia", Fixtures.AsOf);
|
||||
|
||||
private static string Snapshot(ApplicantPool pool) =>
|
||||
string.Join('\n', pool.Applicants.Select(applicant =>
|
||||
|
||||
Reference in New Issue
Block a user