diff --git a/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/EntryFakerHelper.cs b/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/EntryFakerHelper.cs index 3a21395700..cee009ce4e 100644 --- a/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/EntryFakerHelper.cs +++ b/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/EntryFakerHelper.cs @@ -20,7 +20,11 @@ public static async Task EntryReadyForCreation(this AutoFaker autoFaker, foreach (var sense in entry.Senses) { sense.EntryId = entry.Id; - if (sense.PartOfSpeechId.HasValue && sense.PartOfSpeech is null) + if (sense.PartOfSpeech is not null) + { + sense.PartOfSpeechId = sense.PartOfSpeech.Id; + } + else if (sense.PartOfSpeechId.HasValue) { var pos = new PartOfSpeech() {