From 22d2fe99c6fd9806b36025399a217a3a8b4e50f4 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Thu, 15 Sep 2016 16:21:11 -0700 Subject: [PATCH] AddOptions in BuildAuthorizationService test helper --- .../DefaultAuthorizationServiceTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Microsoft.AspNetCore.Authorization.Test/DefaultAuthorizationServiceTests.cs b/test/Microsoft.AspNetCore.Authorization.Test/DefaultAuthorizationServiceTests.cs index 039740ab2f..7b0fc8c8b9 100644 --- a/test/Microsoft.AspNetCore.Authorization.Test/DefaultAuthorizationServiceTests.cs +++ b/test/Microsoft.AspNetCore.Authorization.Test/DefaultAuthorizationServiceTests.cs @@ -20,6 +20,7 @@ namespace Microsoft.AspNetCore.Authorization.Test var services = new ServiceCollection(); services.AddAuthorization(); services.AddLogging(); + services.AddOptions(); setupServices?.Invoke(services); return services.BuildServiceProvider().GetRequiredService(); }