Included file scoped namespace
This commit is contained in:
parent
15f5e49134
commit
f53a3e407f
@ -1,9 +1,5 @@
|
||||
using Microsoft.AspNetCore.TestHost;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
namespace FunctionalTests.Extensions;
|
||||
|
||||
namespace FunctionalTests.Extensions
|
||||
{
|
||||
static class HttpClientExtensions
|
||||
{
|
||||
public static HttpClient CreateIdempotentClient(this TestServer server)
|
||||
@ -13,4 +9,3 @@ namespace FunctionalTests.Extensions
|
||||
return client;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,5 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
namespace FunctionalTests.Middleware;
|
||||
|
||||
namespace FunctionalTests.Middleware
|
||||
{
|
||||
class AutoAuthorizeMiddleware
|
||||
{
|
||||
public const string IDENTITY_ID = "9e3163b9-1ae6-4652-9dc6-7898ab7b7a00";
|
||||
@ -28,4 +24,3 @@ namespace FunctionalTests.Middleware
|
||||
await _next.Invoke(httpContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,5 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.TestHost;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
namespace FunctionalTests.Services.Basket;
|
||||
|
||||
namespace FunctionalTests.Services.Basket
|
||||
{
|
||||
public class BasketScenariosBase
|
||||
{
|
||||
private const string ApiUrlBase = "api/v1/basket";
|
||||
@ -46,4 +40,3 @@ namespace FunctionalTests.Services.Basket
|
||||
public static string CheckoutOrder = $"{ApiUrlBase}/checkout";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +1,5 @@
|
||||
using FunctionalTests.Middleware;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
namespace FunctionalTests.Services.Basket;
|
||||
using Microsoft.eShopOnContainers.Services.Basket.API;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace FunctionalTests.Services.Basket
|
||||
{
|
||||
class BasketTestsStartup : Startup
|
||||
{
|
||||
public BasketTestsStartup(IConfiguration env) : base(env)
|
||||
@ -24,4 +19,3 @@ namespace FunctionalTests.Services.Basket
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,6 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.TestHost;
|
||||
using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF;
|
||||
namespace FunctionalTests.Services.Catalog;
|
||||
using Microsoft.eShopOnContainers.Services.Catalog.API;
|
||||
using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace FunctionalTests.Services.Catalog
|
||||
{
|
||||
public class CatalogScenariosBase
|
||||
{
|
||||
public TestServer CreateServer()
|
||||
@ -62,4 +51,3 @@ namespace FunctionalTests.Services.Catalog
|
||||
public static string UpdateCatalogProduct = "api/v1/catalog/items";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +1,8 @@
|
||||
using FunctionalTests.Services.Basket;
|
||||
using FunctionalTests.Services.Catalog;
|
||||
namespace FunctionalTests.Services;
|
||||
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
|
||||
using Microsoft.eShopOnContainers.Services.Catalog.API.Model;
|
||||
using Microsoft.eShopOnContainers.Services.Catalog.API.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace FunctionalTests.Services
|
||||
{
|
||||
public class IntegrationEventsScenarios
|
||||
{
|
||||
[Fact]
|
||||
@ -131,4 +120,3 @@ namespace FunctionalTests.Services
|
||||
return basket;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,19 +1,5 @@
|
||||
using FunctionalTests.Extensions;
|
||||
using FunctionalTests.Services.Basket;
|
||||
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
|
||||
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
|
||||
using System;
|
||||
using System.Text.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
using Xunit;
|
||||
namespace FunctionalTests.Services.Ordering;
|
||||
|
||||
namespace FunctionalTests.Services.Ordering
|
||||
{
|
||||
public class OrderingScenarios : OrderingScenariosBase
|
||||
{
|
||||
[Fact]
|
||||
@ -153,4 +139,3 @@ namespace FunctionalTests.Services.Ordering
|
||||
return JsonSerializer.Serialize(checkoutBasket);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,5 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
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 FunctionalTests.Services.Ordering;
|
||||
|
||||
namespace FunctionalTests.Services.Ordering
|
||||
{
|
||||
public class OrderingScenariosBase
|
||||
{
|
||||
public TestServer CreateServer()
|
||||
@ -74,4 +61,3 @@ namespace FunctionalTests.Services.Ordering
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +1,6 @@
|
||||
using FunctionalTests.Middleware;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
namespace FunctionalTests.Services.Ordering;
|
||||
using Microsoft.eShopOnContainers.Services.Ordering.API;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace FunctionalTests.Services.Ordering
|
||||
{
|
||||
public class OrderingTestsStartup : Startup
|
||||
{
|
||||
public OrderingTestsStartup(IConfiguration env) : base(env)
|
||||
@ -24,4 +20,3 @@ namespace FunctionalTests.Services.Ordering
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user