diff --git a/src/Testing.FakeItEasy/AutoFakeTest.cs b/src/Testing.FakeItEasy/AutoFakeTest.cs index ca28aa3ce8..9c4a713360 100644 --- a/src/Testing.FakeItEasy/AutoFakeTest.cs +++ b/src/Testing.FakeItEasy/AutoFakeTest.cs @@ -122,7 +122,7 @@ private IContainer ConfigureContainer(IContainer container) container.RegisterInstance(LoggerFactory); container.RegisterInstance(Logger); container.RegisterInstance(SerilogLogger); - return BuildContainer(container).WithDependencyInjectionAdapter(); + return BuildContainer(container.WithDependencyInjectionAdapter()); } /// diff --git a/src/Testing.Moq/AutoMockTest.cs b/src/Testing.Moq/AutoMockTest.cs index f5e6ca9130..b1850bea19 100644 --- a/src/Testing.Moq/AutoMockTest.cs +++ b/src/Testing.Moq/AutoMockTest.cs @@ -113,7 +113,7 @@ private IContainer ConfigureContainer(IContainer container) container.RegisterInstance(LoggerFactory); container.RegisterInstance(Logger); container.RegisterInstance(SerilogLogger); - return BuildContainer(container).WithDependencyInjectionAdapter(); + return BuildContainer(container.WithDependencyInjectionAdapter()); } /// diff --git a/src/Testing.NSubstitute/AutoSubstituteTest.cs b/src/Testing.NSubstitute/AutoSubstituteTest.cs index 7f1657c65a..24534e66c8 100644 --- a/src/Testing.NSubstitute/AutoSubstituteTest.cs +++ b/src/Testing.NSubstitute/AutoSubstituteTest.cs @@ -121,7 +121,7 @@ private IContainer ConfigureContainer(IContainer container) container.RegisterInstance(LoggerFactory); container.RegisterInstance(Logger); container.RegisterInstance(SerilogLogger); - return BuildContainer(container).WithDependencyInjectionAdapter(); + return BuildContainer(container.WithDependencyInjectionAdapter()); } } } \ No newline at end of file