Updated integration testing for English and Japanese. Fixed minor voice work updater issue. Updated to XUnitV3.

This commit is contained in:
2025-10-28 22:01:34 -04:00
parent 99c397b3bc
commit 6d090390b0
24 changed files with 1018 additions and 354 deletions

View File

@@ -97,15 +97,12 @@ public class EnglishVoiceWorkUpdater(AppDbContext dbContext, ILanguageIdentifier
englishVoiceWork.Description = ingest.Description;
englishVoiceWork.IsValid = true;
switch (dbContext.Entry(englishVoiceWork).State)
return dbContext.Entry(englishVoiceWork).State switch
{
case EntityState.Added:
return VoiceWorkUpsertStatus.Inserted;
case EntityState.Modified:
return VoiceWorkUpsertStatus.Updated;
default:
return VoiceWorkUpsertStatus.Unchanged;
}
EntityState.Added => VoiceWorkUpsertStatus.Inserted,
EntityState.Modified => VoiceWorkUpsertStatus.Updated,
_ => VoiceWorkUpsertStatus.Unchanged,
};
}
private EnglishVoiceWork GetOrAddEnglishVoiceWork(VoiceWorkIngest ingest, EnglishVoiceWorkUpsertContext upsertContext)