@@ -37,7 +37,6 @@ public async Task AuthorizationMiddleware_WhenNoAuthMetadataIsConfigured()
37
37
app . UseRouting ( ) ;
38
38
app . UseAuthorization ( ) ;
39
39
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) ) ;
40
-
41
40
} )
42
41
. ConfigureServices ( services =>
43
42
{
@@ -62,7 +61,6 @@ public async Task AuthorizationMiddleware_WhenEndpointIsNotFound()
62
61
app . UseRouting ( ) ;
63
62
app . UseAuthorization ( ) ;
64
63
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) ) ;
65
-
66
64
} )
67
65
. ConfigureServices ( services =>
68
66
{
@@ -87,7 +85,6 @@ public async Task AuthorizationMiddleware_WithAuthorizedEndpoint()
87
85
app . UseRouting ( ) ;
88
86
app . UseAuthorization ( ) ;
89
87
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
90
-
91
88
} )
92
89
. ConfigureServices ( services =>
93
90
{
@@ -134,7 +131,6 @@ public async Task AuthorizationMiddleware_NotConfigured_WhenEndpointIsNotFound()
134
131
{
135
132
app . UseRouting ( ) ;
136
133
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
137
-
138
134
} )
139
135
. ConfigureServices ( services =>
140
136
{
@@ -158,7 +154,6 @@ public async Task AuthorizationMiddleware_ConfiguredBeforeRouting_Throws()
158
154
app . UseAuthorization ( ) ;
159
155
app . UseRouting ( ) ;
160
156
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
161
-
162
157
} )
163
158
. ConfigureServices ( services =>
164
159
{
@@ -182,7 +177,6 @@ public async Task AuthorizationMiddleware_ConfiguredAfterRouting_Throws()
182
177
app . UseRouting ( ) ;
183
178
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
184
179
app . UseAuthorization ( ) ;
185
-
186
180
} )
187
181
. ConfigureServices ( services =>
188
182
{
@@ -206,7 +200,6 @@ public async Task CorsMiddleware_WithCorsEndpoint()
206
200
app . UseRouting ( ) ;
207
201
app . UseCors ( ) ;
208
202
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireCors ( policy => policy . AllowAnyOrigin ( ) ) ) ;
209
-
210
203
} )
211
204
. ConfigureServices ( services =>
212
205
{
@@ -231,7 +224,6 @@ public async Task CorsMiddleware_ConfiguredBeforeRouting_Throws()
231
224
app . UseCors ( ) ;
232
225
app . UseRouting ( ) ;
233
226
app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireCors ( policy => policy . AllowAnyOrigin ( ) ) ) ;
234
-
235
227
} )
236
228
. ConfigureServices ( services =>
237
229
{
0 commit comments