Skip to content

Commit

Permalink
Update ClassConstructor.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Feb 14, 2025
1 parent e573d5c commit d099110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Verify.TUnit.Tests/ClassConstructor/ClassConstructor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

public class ClassConstructor : IClassConstructor
{
static readonly IServiceProvider serviceProvider = CreateServiceProvider();
static readonly ServiceProvider serviceProvider = CreateServiceProvider();

AsyncServiceScope scope;

Expand All @@ -14,7 +14,7 @@ public class ClassConstructor : IClassConstructor
return ActivatorUtilities.GetServiceOrCreateInstance<T>(scope.ServiceProvider);
}

static IServiceProvider CreateServiceProvider() =>
static ServiceProvider CreateServiceProvider() =>
new ServiceCollection()
.AddSingleton<string>("SingletonValue")
.BuildServiceProvider();
Expand Down

0 comments on commit d099110

Please sign in to comment.