Standardize namespaces to all be under the Microsoft.eShopOnWeb namespace and update default namespaces. (#102)

This commit is contained in:
Jeremy Hutchinson
2018-06-05 08:52:54 -04:00
committed by Steve Smith
parent 8bf2a7ade1
commit f953495e38
136 changed files with 342 additions and 335 deletions

View File

@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RootNamespace>Microsoft.eShopWeb.FunctionalTests</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@@ -1,13 +1,13 @@
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.ViewModels;
using Microsoft.eShopWeb.Web;
using Microsoft.eShopWeb.Web.ViewModels;
using Newtonsoft.Json;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace FunctionalTests.Web.Controllers
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
{
public class ApiCatalogControllerList : IClassFixture<CustomWebApplicationFactory<Startup>>
{

View File

@@ -1,10 +1,10 @@
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.Web;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace FunctionalTests.Web.Controllers
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
{
public class CatalogControllerIndex : IClassFixture<CustomWebApplicationFactory<Startup>>
{

View File

@@ -1,14 +1,14 @@
using Infrastructure.Data;
using Microsoft.eShopWeb.Infrastructure.Data;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.Web;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using Microsoft.EntityFrameworkCore;
using Infrastructure.Identity;
using Microsoft.eShopWeb.Infrastructure.Identity;
namespace FunctionalTests.Web.Controllers
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
{
public class CustomWebApplicationFactory<TStartup>
: WebApplicationFactory<Startup>

View File

@@ -1,11 +1,11 @@
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.Web;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace FunctionalTests.Web.Controllers
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
{
public class OrderIndexOnGet : IClassFixture<CustomWebApplicationFactory<Startup>>
{

View File

@@ -1,14 +1,14 @@
using Infrastructure.Data;
using Microsoft.eShopWeb.Infrastructure.Data;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.Web;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using Microsoft.EntityFrameworkCore;
using Infrastructure.Identity;
using Microsoft.eShopWeb.Infrastructure.Identity;
namespace FunctionalTests.WebRazorPages
namespace Microsoft.eShopWeb.FunctionalTests.WebRazorPages
{
public class CustomWebRazorPagesApplicationFactory<TStartup>
: WebApplicationFactory<Startup>

View File

@@ -3,7 +3,7 @@ using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace FunctionalTests.WebRazorPages
namespace Microsoft.eShopWeb.FunctionalTests.WebRazorPages
{
public class HomePageOnGet : IClassFixture<CustomWebRazorPagesApplicationFactory<Startup>>
{

View File

@@ -1,11 +1,11 @@
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.Web;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace FunctionalTests.WebRazorPages
namespace Microsoft.eShopWeb.FunctionalTests.WebRazorPages
{
public class OrderIndexOnGet : IClassFixture<CustomWebRazorPagesApplicationFactory<Startup>>
{

View File

@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RootNamespace>Microsoft.eShopWeb.IntegrationTests</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@@ -1,11 +1,11 @@
using Infrastructure.Data;
using Microsoft.eShopWeb.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using UnitTests.Builders;
using Microsoft.eShopWeb.UnitTests.Builders;
using Xunit;
using Xunit.Abstractions;
namespace IntegrationTests.Repositories.OrderRepositoryTests
namespace Microsoft.eShopWeb.IntegrationTests.Repositories.OrderRepositoryTests
{
public class GetById
{

View File

@@ -3,7 +3,7 @@ using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
using System.Linq;
using Xunit;
namespace UnitTests.ApplicationCore.Entities.BasketTests
namespace Microsoft.eShopWeb.UnitTests.ApplicationCore.Entities.BasketTests
{
public class Total
{

View File

@@ -1,9 +1,9 @@
using ApplicationCore.Entities.OrderAggregate;
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
using System.Collections.Generic;
using UnitTests.Builders;
using Microsoft.eShopWeb.UnitTests.Builders;
using Xunit;
namespace UnitTests.ApplicationCore.Entities.OrderTests
namespace Microsoft.eShopWeb.UnitTests.ApplicationCore.Entities.OrderTests
{
public class Total
{

View File

@@ -1,13 +1,13 @@
using ApplicationCore.Exceptions;
using ApplicationCore.Interfaces;
using ApplicationCore.Services;
using Microsoft.eShopWeb.ApplicationCore.Exceptions;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Services;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
using Moq;
using System;
using Xunit;
namespace UnitTests.ApplicationCore.Services.BasketServiceTests
namespace Microsoft.eShopWeb.UnitTests.ApplicationCore.Services.BasketServiceTests
{
public class SetQuantities
{

View File

@@ -1,8 +1,8 @@
using ApplicationCore.Services;
using Microsoft.eShopWeb.ApplicationCore.Services;
using System;
using Xunit;
namespace UnitTests.ApplicationCore.Services.BasketServiceTests
namespace Microsoft.eShopWeb.UnitTests.ApplicationCore.Services.BasketServiceTests
{
public class TransferBasket
{

View File

@@ -1,11 +1,11 @@
using ApplicationCore.Specifications;
using Microsoft.eShopWeb.ApplicationCore.Specifications;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace UnitTests
namespace Microsoft.eShopWeb.UnitTests
{
public class BasketWithItems
{

View File

@@ -1,10 +1,10 @@
using ApplicationCore.Specifications;
using Microsoft.eShopWeb.ApplicationCore.Specifications;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace UnitTests
namespace Microsoft.eShopWeb.UnitTests
{
public class CatalogFilterSpecificationFilter
{

View File

@@ -1,6 +1,6 @@
using ApplicationCore.Entities.OrderAggregate;
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
namespace UnitTests.Builders
namespace Microsoft.eShopWeb.UnitTests.Builders
{
public class AddressBuilder
{

View File

@@ -1,7 +1,7 @@
using ApplicationCore.Entities.OrderAggregate;
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
using System.Collections.Generic;
namespace UnitTests.Builders
namespace Microsoft.eShopWeb.UnitTests.Builders
{
public class OrderBuilder
{

View File

@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RootNamespace>Microsoft.eShopWeb.UnitTests</RootNamespace>
</PropertyGroup>
<ItemGroup>