|
|
@@ -7,7 +7,6 @@ using System.Text;
|
|
|
using System.Xml.Linq;
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
using Microsoft.AspNetCore.TestHost;
|
|
|
-using Microsoft.Extensions.Configuration;
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
namespace Microsoft.AspNetCore.Authentication;
|
|
|
@@ -80,11 +79,6 @@ public static class TestExtensions
|
|
|
}
|
|
|
|
|
|
public static IServiceCollection ConfigureAuthTestServices(this IServiceCollection services)
|
|
|
- {
|
|
|
- return services
|
|
|
- .AddOptions()
|
|
|
- .AddLogging()
|
|
|
- .AddSingleton<IConfiguration>(new ConfigurationManager());
|
|
|
- }
|
|
|
-
|
|
|
+ => services.AddOptions()
|
|
|
+ .AddLogging();
|
|
|
}
|