refactor(bootstrap): migrate build-deck catalog to seed file

This commit is contained in:
gamer147
2026-05-26 15:16:36 -04:00
parent a71bf6c62b
commit 34ed8788a4
6 changed files with 1744 additions and 159 deletions

View File

@@ -9,6 +9,7 @@ namespace SVSim.UnitTests.Importers;
public class BuildDeckImporterTests
{
private static string DataDir => Path.Combine(AppContext.BaseDirectory, "Data");
private static string SeedDir => Path.Combine(AppContext.BaseDirectory, "Data", "seeds");
[Test]
public async Task ImportsAll22Series_with_22_disabled_until_catalog_enables()
@@ -71,7 +72,7 @@ public class BuildDeckImporterTests
var importer = new BuildDeckImporter();
await importer.ImportSeriesAsync(db, DataDir);
await importer.ImportCatalogAsync(db, Path.Combine(DataDir, "prod-captures"));
await importer.ImportCatalogAsync(db, SeedDir);
await importer.ImportPackageAsync(db, DataDir);
// Series 101 (Set 1) should be enabled and order_id=22 from capture