diff --git a/backend/FwLite/MiniLcm.Tests/UpdateEntryTestsBase.cs b/backend/FwLite/MiniLcm.Tests/UpdateEntryTestsBase.cs index 5268f2a83..eb32a57b9 100644 --- a/backend/FwLite/MiniLcm.Tests/UpdateEntryTestsBase.cs +++ b/backend/FwLite/MiniLcm.Tests/UpdateEntryTestsBase.cs @@ -121,9 +121,9 @@ public async Task UpdateEntry_CanReorderSenses(string before, string after, stri // arrange var entryId = Guid.NewGuid(); var senseIds = before.Split(',').Concat(after.Split(',')).Distinct() - .ToDictionary(i => i, _ => Guid.NewGuid()); - var beforeSenses = before.Split(',').Select(i => new Sense() { Id = senseIds[i], EntryId = entryId, Gloss = { { "en", i } } }).ToList(); - var afterSenses = after.Split(',').Select(i => new Sense() { Id = senseIds[i], EntryId = entryId, Gloss = { { "en", i } } }).ToList(); + .ToDictionary(@char => @char, _ => Guid.NewGuid()); + var beforeSenses = before.Split(',').Select(@char => new Sense() { Id = senseIds[@char], EntryId = entryId, Gloss = { { "en", @char } } }).ToList(); + var afterSenses = after.Split(',').Select(@char => new Sense() { Id = senseIds[@char], EntryId = entryId, Gloss = { { "en", @char } } }).ToList(); var beforeEntry = await Api.CreateEntry(new() { @@ -174,9 +174,9 @@ public async Task UpdateEntry_CanReorderExampleSentence(string before, string af var entryId = Guid.NewGuid(); var senseId = Guid.NewGuid(); var exampleIds = before.Split(',').Concat(after.Split(',')).Distinct() - .ToDictionary(i => i, _ => Guid.NewGuid()); - var beforeExamples = before.Split(',').Select(i => new ExampleSentence() { Id = exampleIds[i], SenseId = senseId, Sentence = { { "en", i } } }).ToList(); - var afterExamples = after.Split(',').Select(i => new ExampleSentence() { Id = exampleIds[i], SenseId = senseId, Sentence = { { "en", i } } }).ToList(); + .ToDictionary(@char => @char, _ => Guid.NewGuid()); + var beforeExamples = before.Split(',').Select(@char => new ExampleSentence() { Id = exampleIds[@char], SenseId = senseId, Sentence = { { "en", @char } } }).ToList(); + var afterExamples = after.Split(',').Select(@char => new ExampleSentence() { Id = exampleIds[@char], SenseId = senseId, Sentence = { { "en", @char } } }).ToList(); var beforeEntry = await Api.CreateEntry(new() {