@@ -37,7 +37,6 @@ public async Task AuthorizationMiddleware_WhenNoAuthMetadataIsConfigured()
3737 app . UseRouting ( ) ;
3838 app . UseAuthorization ( ) ;
3939 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) ) ;
40-
4140 } )
4241 . ConfigureServices ( services =>
4342 {
@@ -62,7 +61,6 @@ public async Task AuthorizationMiddleware_WhenEndpointIsNotFound()
6261 app . UseRouting ( ) ;
6362 app . UseAuthorization ( ) ;
6463 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) ) ;
65-
6664 } )
6765 . ConfigureServices ( services =>
6866 {
@@ -87,7 +85,6 @@ public async Task AuthorizationMiddleware_WithAuthorizedEndpoint()
8785 app . UseRouting ( ) ;
8886 app . UseAuthorization ( ) ;
8987 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
90-
9188 } )
9289 . ConfigureServices ( services =>
9390 {
@@ -134,7 +131,6 @@ public async Task AuthorizationMiddleware_NotConfigured_WhenEndpointIsNotFound()
134131 {
135132 app . UseRouting ( ) ;
136133 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
137-
138134 } )
139135 . ConfigureServices ( services =>
140136 {
@@ -158,7 +154,6 @@ public async Task AuthorizationMiddleware_ConfiguredBeforeRouting_Throws()
158154 app . UseAuthorization ( ) ;
159155 app . UseRouting ( ) ;
160156 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
161-
162157 } )
163158 . ConfigureServices ( services =>
164159 {
@@ -182,7 +177,6 @@ public async Task AuthorizationMiddleware_ConfiguredAfterRouting_Throws()
182177 app . UseRouting ( ) ;
183178 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireAuthorization ( ) ) ;
184179 app . UseAuthorization ( ) ;
185-
186180 } )
187181 . ConfigureServices ( services =>
188182 {
@@ -206,7 +200,6 @@ public async Task CorsMiddleware_WithCorsEndpoint()
206200 app . UseRouting ( ) ;
207201 app . UseCors ( ) ;
208202 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireCors ( policy => policy . AllowAnyOrigin ( ) ) ) ;
209-
210203 } )
211204 . ConfigureServices ( services =>
212205 {
@@ -231,7 +224,6 @@ public async Task CorsMiddleware_ConfiguredBeforeRouting_Throws()
231224 app . UseCors ( ) ;
232225 app . UseRouting ( ) ;
233226 app . UseEndpoints ( b => b . Map ( "/" , TestDelegate ) . RequireCors ( policy => policy . AllowAnyOrigin ( ) ) ) ;
234-
235227 } )
236228 . ConfigureServices ( services =>
237229 {
0 commit comments