From 649e45b5c0fc3d8b3cb75b17de2ced2845746a4c Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Fri, 19 Jun 2026 01:02:58 -0400 Subject: [PATCH] test(transport-integration): register ISharedSchemaRepository for FlatteningPipeline in BundleImporterApply fixture (#287, M9-T32 injection regression) --- .../Import/BundleImporterApplyTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ZB.MOM.WW.ScadaBridge.Transport.IntegrationTests/Import/BundleImporterApplyTests.cs b/tests/ZB.MOM.WW.ScadaBridge.Transport.IntegrationTests/Import/BundleImporterApplyTests.cs index 2c8c0db2..0ec73ed9 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.Transport.IntegrationTests/Import/BundleImporterApplyTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.Transport.IntegrationTests/Import/BundleImporterApplyTests.cs @@ -69,6 +69,12 @@ public sealed class BundleImporterApplyTests : IDisposable // site/data-connection/instance closure; register it or activation fails. services.AddScoped(); services.AddScoped(); + // M9-T32: FlatteningPipeline gained an ISharedSchemaRepository constructor + // dependency for schema-library $ref resolution; register the real repo so + // AddDeploymentManager()'s IFlatteningPipeline → FlatteningPipeline activates. + // SharedSchemaRepository only needs ScadaBridgeDbContext, which is already + // registered above as the in-memory provider. + services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddTransport();