Skip to content

Commit

Permalink
add proper namespacing and refactor accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
ahanusa committed Dec 24, 2015
1 parent 4890c39 commit 336271a
Show file tree
Hide file tree
Showing 125 changed files with 274 additions and 376 deletions.
11 changes: 3 additions & 8 deletions Orders.com.BLL.Tests/Commands/CreateProductCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Commands;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.Extensions;
using Orders.com.DAL.InMemory;
using Peasy;
using Peasy.Core;
using Peasy.Rules;
using Shouldly;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Services;
using Orders.com.BLL.DataProxy;

namespace Orders.com.BLL.Tests.Commands
{
Expand Down
9 changes: 4 additions & 5 deletions Orders.com.BLL.Tests/Commands/DeleteOrderCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Commands;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.Extensions;
using Orders.com.DAL.InMemory;
using Peasy;
using Peasy.Extensions;
using Peasy.Core;
using Peasy.Rules;
using Shouldly;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Extensions;
using Orders.com.BLL.Services;

namespace Orders.com.BLL.Tests.Commands
{
Expand Down
8 changes: 3 additions & 5 deletions Orders.com.BLL.Tests/Commands/DeleteProductCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Commands;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.DAL.InMemory;
using Peasy;
using Peasy.Extensions;
using Shouldly;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Orders.com.BLL.Domain;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Services;

namespace Orders.com.BLL.Tests.Commands
{
Expand Down
6 changes: 3 additions & 3 deletions Orders.com.BLL.Tests/Commands/ShipOrderItemCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Commands;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.Extensions;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Extensions;
using Peasy;
using Shouldly;
using System;
Expand Down
4 changes: 2 additions & 2 deletions Orders.com.BLL.Tests/Rules/CanDeleteCategoryRuleTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Orders.com.BLL.Domain;
using Orders.com.BLL.DataProxy;

namespace Orders.com.BLL.Tests.Rules
{
Expand Down
5 changes: 3 additions & 2 deletions Orders.com.BLL.Tests/Rules/CanDeleteCustomerRuleTests.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Peasy;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Services;
using Orders.com.BLL.DataProxy;

namespace Orders.com.BLL.Tests.Rules
{
Expand Down
5 changes: 2 additions & 3 deletions Orders.com.BLL.Tests/Rules/CanDeleteProductRuleTests.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Peasy;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Domain;

namespace Orders.com.BLL.Tests.Rules
{
Expand Down
8 changes: 2 additions & 6 deletions Orders.com.BLL.Tests/Rules/CanShipOrderItemRuleTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.Extensions;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Peasy;
using Orders.com.BLL.Extensions;
using Orders.com.BLL.Domain;

namespace Orders.com.BLL.Tests.Rules
{
Expand Down
8 changes: 2 additions & 6 deletions Orders.com.BLL.Tests/Rules/CanSubmitOrderItemRuleTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.Extensions;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Peasy;
using Orders.com.BLL.Extensions;
using Orders.com.BLL.Domain;

namespace Orders.com.BLL.Tests.Rules
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Rules;
using Orders.com.Domain;
using Peasy.Rules;
using Shouldly;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Rules;
using Orders.com.Domain;
using Peasy.Rules;
using Shouldly;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Extensions;
using Orders.com.BLL.Rules;
using Orders.com.Domain;
using Orders.com.Extensions;
using Peasy.Rules;
using Shouldly;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Extensions;
using Orders.com.BLL.Rules;
using Orders.com.Domain;
using Orders.com.Extensions;
using Peasy.Rules;
using Shouldly;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Extensions;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.Extensions;
using Orders.com.BLL.Services;
using Peasy;
using Peasy.Rules;
using Shouldly;
using System.Linq;
using System.Threading.Tasks;
Expand Down
5 changes: 3 additions & 2 deletions Orders.com.BLL/Commands/CreateProductCommand.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using Peasy;
using Peasy.Core;
using Orders.com.DataProxy;
using Orders.com.Domain;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Orders.com.BLL.Domain;
using Orders.com.BLL.Services;
using Orders.com.BLL.DataProxy;

namespace Orders.com.BLL.Commands
{
Expand Down
5 changes: 3 additions & 2 deletions Orders.com.BLL/Commands/DeleteOrderCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
using Peasy.Core;
using Peasy.Core.Extensions;
using Peasy.Extensions;
using Orders.com.DataProxy;
using Orders.com.Domain;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Services;
using Orders.com.BLL.Domain;

namespace Orders.com.BLL.Commands
{
Expand Down
4 changes: 2 additions & 2 deletions Orders.com.BLL/Commands/DeleteProductCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
using Peasy.Core;
using Peasy.Core.Extensions;
using Peasy.Extensions;
using Orders.com.BLL;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Services;

namespace Orders.com.BLL.Commands
{
Expand Down
8 changes: 3 additions & 5 deletions Orders.com.BLL/Commands/ShipOrderItemCommand.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using Peasy;
using Peasy.Core;
using Peasy.Core.Extensions;
using Orders.com.BLL.Rules;
using Orders.com.DataProxy;
using Orders.com.Domain;
using Orders.com.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using System.Linq;
using Orders.com.BLL.Domain;
using Orders.com.BLL.DataProxy;
using Orders.com.BLL.Extensions;

namespace Orders.com.BLL.Commands
{
Expand Down
4 changes: 2 additions & 2 deletions Orders.com.BLL/DataProxy/ICategoryDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Orders.com.Domain;
using Orders.com.BLL.Domain;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface ICategoryDataProxy : IOrdersDotComDataProxy<Category>
{
Expand Down
4 changes: 2 additions & 2 deletions Orders.com.BLL/DataProxy/ICustomerDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Orders.com.Domain;
using Orders.com.BLL.Domain;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface ICustomerDataProxy : IOrdersDotComDataProxy<Customer>
{
Expand Down
7 changes: 3 additions & 4 deletions Orders.com.BLL/DataProxy/IOrderDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using Orders.com.Domain;
using Orders.com.QueryData;
using System;
using Orders.com.BLL.Domain;
using Orders.com.BLL.QueryData;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface IOrderDataProxy : IOrdersDotComDataProxy<Order>
{
Expand Down
5 changes: 2 additions & 3 deletions Orders.com.BLL/DataProxy/IOrderItemDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using Orders.com.Domain;
using System;
using Orders.com.BLL.Domain;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface IOrderItemDataProxy : IOrdersDotComDataProxy<OrderItem>
{
Expand Down
4 changes: 2 additions & 2 deletions Orders.com.BLL/DataProxy/IOrderStatusDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Orders.com.Domain;
using Orders.com.BLL.Domain;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface IOrderStatusDataProxy : IOrdersDotComDataProxy<OrderStatus>
{
Expand Down
2 changes: 1 addition & 1 deletion Orders.com.BLL/DataProxy/IOrdersDotComDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Peasy;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface IOrdersDotComDataProxy<T> : IServiceDataProxy<T, long>
{
Expand Down
4 changes: 2 additions & 2 deletions Orders.com.BLL/DataProxy/IProductDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Orders.com.Domain;
using Orders.com.BLL.Domain;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface IProductDataProxy : IOrdersDotComDataProxy<Product>
{
Expand Down
4 changes: 2 additions & 2 deletions Orders.com.BLL/DataProxy/InventoryItemDataProxy.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Orders.com.Domain;
using Orders.com.BLL.Domain;
using System.Threading.Tasks;

namespace Orders.com.DataProxy
namespace Orders.com.BLL.DataProxy
{
public interface IInventoryItemDataProxy : IOrdersDotComDataProxy<InventoryItem>
{
Expand Down
2 changes: 1 addition & 1 deletion Orders.com.BLL/Domain/Category.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;

namespace Orders.com.Domain
namespace Orders.com.BLL.Domain
{
public class Category : DomainBase
{
Expand Down
6 changes: 2 additions & 4 deletions Orders.com.BLL/Domain/Customer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Peasy;
using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel.DataAnnotations;

namespace Orders.com.Domain
namespace Orders.com.BLL.Domain
{
public class Customer : DomainBase
{
Expand Down
2 changes: 1 addition & 1 deletion Orders.com.BLL/Domain/DomainBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Runtime.Serialization;
//using Newtonsoft.Json;

namespace Orders.com
namespace Orders.com.BLL.Domain
{
public abstract class DomainBase : IDomainObject<long>
{
Expand Down
8 changes: 1 addition & 7 deletions Orders.com.BLL/Domain/IOrderStatusIDContainer.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Orders.com.Domain
namespace Orders.com.BLL.Domain
{
public interface IOrderStatusIDContainer
{
Expand Down
Loading

0 comments on commit 336271a

Please sign in to comment.