diff --git a/src/bunit.web/Extensions/TestServiceProviderExtensions.cs b/src/bunit.web/Extensions/TestServiceProviderExtensions.cs index 6c8e640c0..60ddc7bca 100644 --- a/src/bunit.web/Extensions/TestServiceProviderExtensions.cs +++ b/src/bunit.web/Extensions/TestServiceProviderExtensions.cs @@ -48,7 +48,7 @@ public static IServiceCollection AddDefaultTestContextServices(this IServiceColl // bUnit specific services services.AddSingleton(testContext); services.AddSingleton(); - services.AddScoped(); + services.AddSingleton(); services.AddSingleton(s => s.GetRequiredService()); services.AddSingleton(s => s.GetRequiredService()); services.AddSingleton(s => s.GetRequiredService());