Included file-scope namespace statement for using
This commit is contained in:
		
							parent
							
								
									6833ad3621
								
							
						
					
					
						commit
						074025644a
					
				| @ -1,11 +1,7 @@ | |||||||
| using Microsoft.AspNetCore.Http; | namespace Ordering.FunctionalTests; | ||||||
| using System.Security.Claims; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.FunctionalTests | class AutoAuthorizeMiddleware | ||||||
| { | { | ||||||
|     class AutoAuthorizeMiddleware |  | ||||||
|     { |  | ||||||
|     public const string IDENTITY_ID = "9e3163b9-1ae6-4652-9dc6-7898ab7b7a00"; |     public const string IDENTITY_ID = "9e3163b9-1ae6-4652-9dc6-7898ab7b7a00"; | ||||||
| 
 | 
 | ||||||
|     private readonly RequestDelegate _next; |     private readonly RequestDelegate _next; | ||||||
| @ -27,5 +23,4 @@ namespace Ordering.FunctionalTests | |||||||
| 
 | 
 | ||||||
|         await _next.Invoke(httpContext); |         await _next.Invoke(httpContext); | ||||||
|     } |     } | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,16 +1,11 @@ | |||||||
| using Microsoft.AspNetCore.TestHost; | namespace Ordering.FunctionalTests; | ||||||
| using System; |  | ||||||
| using System.Net.Http; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.FunctionalTests | static class HttpClientExtensions | ||||||
| { | { | ||||||
|     static class HttpClientExtensions |  | ||||||
|     { |  | ||||||
|     public static HttpClient CreateIdempotentClient(this TestServer server) |     public static HttpClient CreateIdempotentClient(this TestServer server) | ||||||
|     { |     { | ||||||
|         var client = server.CreateClient(); |         var client = server.CreateClient(); | ||||||
|         client.DefaultRequestHeaders.Add("x-requestid", Guid.NewGuid().ToString()); |         client.DefaultRequestHeaders.Add("x-requestid", Guid.NewGuid().ToString()); | ||||||
|         return client; |         return client; | ||||||
|     } |     } | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,20 +1,7 @@ | |||||||
| using Microsoft.AspNetCore.Hosting; | namespace Ordering.FunctionalTests; | ||||||
| using Microsoft.AspNetCore.TestHost; |  | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; |  | ||||||
| using Microsoft.eShopOnContainers.Services.Ordering.API; |  | ||||||
| using Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure; |  | ||||||
| using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure; |  | ||||||
| using Microsoft.Extensions.Configuration; |  | ||||||
| using Microsoft.Extensions.DependencyInjection; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Microsoft.Extensions.Options; |  | ||||||
| using System.IO; |  | ||||||
| using System.Reflection; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.FunctionalTests | public class OrderingScenarioBase | ||||||
| { | { | ||||||
|     public class OrderingScenarioBase |  | ||||||
|     { |  | ||||||
|     public TestServer CreateServer() |     public TestServer CreateServer() | ||||||
|     { |     { | ||||||
|         var path = Assembly.GetAssembly(typeof(OrderingScenarioBase)) |         var path = Assembly.GetAssembly(typeof(OrderingScenarioBase)) | ||||||
| @ -61,5 +48,4 @@ namespace Ordering.FunctionalTests | |||||||
|         public static string CancelOrder = "api/v1/orders/cancel"; |         public static string CancelOrder = "api/v1/orders/cancel"; | ||||||
|         public static string ShipOrder = "api/v1/orders/ship"; |         public static string ShipOrder = "api/v1/orders/ship"; | ||||||
|     } |     } | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,14 +1,7 @@ | |||||||
| using Microsoft.AspNetCore.Builder; | namespace Ordering.FunctionalTests; | ||||||
| using Microsoft.AspNetCore.Routing; |  | ||||||
| using Microsoft.eShopOnContainers.Services.Ordering.API; |  | ||||||
| using Microsoft.Extensions.Configuration; |  | ||||||
| using Microsoft.Extensions.DependencyInjection; |  | ||||||
| using System; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.FunctionalTests | public class OrderingTestsStartup : Startup | ||||||
| { | { | ||||||
|     public class OrderingTestsStartup : Startup |  | ||||||
|     { |  | ||||||
|     public OrderingTestsStartup(IConfiguration env) : base(env) |     public OrderingTestsStartup(IConfiguration env) : base(env) | ||||||
|     { |     { | ||||||
|     } |     } | ||||||
| @ -31,5 +24,4 @@ namespace Ordering.FunctionalTests | |||||||
|             base.ConfigureAuth(app); |             base.ConfigureAuth(app); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user