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();