refactor(AuthClientTests): Methode durch einen statischen Readonly-Delegaten für den Service Provider ersetzen

This commit is contained in:
Developer 02 2025-02-03 15:42:46 +01:00
parent 0614b205bd
commit 48970a1e13

View File

@ -9,7 +9,7 @@ public class AuthClientTests
{ {
private IAuthClient _client; private IAuthClient _client;
private static ServiceProvider Build(Action<ClientParams> options) => new ServiceCollection() private readonly static Func<Action<ClientParams>, ServiceProvider> Build = options => new ServiceCollection()
.AddAuthHubClient(options) .AddAuthHubClient(options)
.BuildServiceProvider(); .BuildServiceProvider();