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>netstandard2.0</TargetFramework>
<RootNamespace>Microsoft.eShopWeb.ApplicationCore</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@@ -1,4 +1,4 @@
using ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using System.Collections.Generic;
using System.Linq;

View File

@@ -1,9 +1,9 @@
using ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Ardalis.GuardClauses;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using System.Collections.Generic;
namespace ApplicationCore.Entities.BuyerAggregate
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate
{
public class Buyer : BaseEntity, IAggregateRoot
{

View File

@@ -1,6 +1,6 @@
using Microsoft.eShopWeb.ApplicationCore.Entities;
namespace ApplicationCore.Entities.BuyerAggregate
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate
{
public class PaymentMethod : BaseEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace ApplicationCore.Entities.OrderAggregate
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
{
public class Address // ValueObject
{

View File

@@ -1,6 +1,6 @@
using Ardalis.GuardClauses;
namespace ApplicationCore.Entities.OrderAggregate
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
{
/// <summary>
/// Represents a snapshot of the item that was ordered. If catalog item details change, details of

View File

@@ -1,10 +1,10 @@
using ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Ardalis.GuardClauses;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using System;
using System.Collections.Generic;
namespace ApplicationCore.Entities.OrderAggregate
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
{
public class Order : BaseEntity, IAggregateRoot
{

View File

@@ -1,6 +1,6 @@
using Microsoft.eShopWeb.ApplicationCore.Entities;
namespace ApplicationCore.Entities.OrderAggregate
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
{
public class OrderItem : BaseEntity

View File

@@ -1,6 +1,6 @@
using System;
namespace ApplicationCore.Exceptions
namespace Microsoft.eShopWeb.ApplicationCore.Exceptions
{
public class BasketNotFoundException : Exception
{

View File

@@ -1,4 +1,4 @@
using ApplicationCore.Exceptions;
using Microsoft.eShopWeb.ApplicationCore.Exceptions;
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
namespace Ardalis.GuardClauses

View File

@@ -1,4 +1,4 @@
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IAggregateRoot
{ }

View File

@@ -1,4 +1,4 @@
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
/// <summary>
/// This type eliminates the need to depend directly on the ASP.NET Core logging types.

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IAsyncRepository<T> where T : BaseEntity
{

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IBasketService
{

View File

@@ -1,6 +1,6 @@
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IEmailSender

View File

@@ -1,6 +1,6 @@
using System.Security.Principal;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IIdentityParser<T>
{

View File

@@ -1,7 +1,7 @@
using ApplicationCore.Entities.OrderAggregate;
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IOrderRepository : IRepository<Order>, IAsyncRepository<Order>

View File

@@ -1,7 +1,7 @@
using ApplicationCore.Entities.OrderAggregate;
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
using System.Threading.Tasks;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IOrderService
{

View File

@@ -1,7 +1,7 @@
using Microsoft.eShopWeb.ApplicationCore.Entities;
using System.Collections.Generic;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IRepository<T> where T : BaseEntity
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq.Expressions;
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface ISpecification<T>
{

View File

@@ -1,4 +1,4 @@
namespace ApplicationCore.Interfaces
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IUriComposer
{

View File

@@ -1,13 +1,13 @@
using ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using System.Threading.Tasks;
using System.Collections.Generic;
using ApplicationCore.Specifications;
using Microsoft.eShopWeb.ApplicationCore.Specifications;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using System.Linq;
using Ardalis.GuardClauses;
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
namespace ApplicationCore.Services
namespace Microsoft.eShopWeb.ApplicationCore.Services
{
public class BasketService : IBasketService
{

View File

@@ -1,12 +1,12 @@
using ApplicationCore.Interfaces;
using ApplicationCore.Entities.OrderAggregate;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
using System.Threading.Tasks;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using System.Collections.Generic;
using Ardalis.GuardClauses;
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
namespace ApplicationCore.Services
namespace Microsoft.eShopWeb.ApplicationCore.Services
{
public class OrderService : IOrderService
{

View File

@@ -1,7 +1,7 @@
using ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Microsoft.eShopWeb;
namespace ApplicationCore.Services
namespace Microsoft.eShopWeb.ApplicationCore.Services
{
public class UriComposer : IUriComposer
{

View File

@@ -1,9 +1,9 @@
using ApplicationCore.Interfaces;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using System;
using System.Linq.Expressions;
using System.Collections.Generic;
namespace ApplicationCore.Specifications
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
{
public abstract class BaseSpecification<T> : ISpecification<T>
{

View File

@@ -1,7 +1,7 @@
using Microsoft.eShopWeb.ApplicationCore.Entities;
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
namespace ApplicationCore.Specifications
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
{
public sealed class BasketWithItemsSpecification : BaseSpecification<Basket>
{

View File

@@ -1,6 +1,6 @@
using Microsoft.eShopWeb.ApplicationCore.Entities;
namespace ApplicationCore.Specifications
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
{
public class CatalogFilterSpecification : BaseSpecification<CatalogItem>

View File

@@ -1,6 +1,6 @@
using ApplicationCore.Entities.OrderAggregate;
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
namespace ApplicationCore.Specifications
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
{
public class CustomerOrdersWithItemsSpecification : BaseSpecification<Order>
{