Skip to content

Commit 942efe6

Browse files
committed
Refactoring namespaces
1 parent 912022d commit 942efe6

23 files changed

+58
-61
lines changed

aws-dotnet-rest-api-with-dynamodb/DotNetServerless.sln

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E45346EE-74B
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{DBC29D13-84FE-4A90-B785-E325BDD494A8}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetServerless.Domain", "src\DotNetServerless.Domain\DotNetServerless.Domain.csproj", "{EE96C435-FFE9-4F98-9865-47B0DC7C2427}"
11-
EndProject
1210
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetServerless.Lambda", "src\DotNetServerless.Lambda\DotNetServerless.Lambda.csproj", "{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}"
1311
EndProject
1412
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetServerless.Tests", "tests\DotNetServerless.Tests\DotNetServerless.Tests.csproj", "{045DC8E9-8CA6-4B76-9C4A-781AB9589700}"
1513
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetServerless.Application", "src\DotNetServerless.Application\DotNetServerless.Application.csproj", "{8F0BB856-4F83-4898-ACC7-68D672386742}"
15+
EndProject
1616
Global
1717
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1818
Debug|Any CPU = Debug|Any CPU
@@ -26,18 +26,6 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Debug|x64.ActiveCfg = Debug|Any CPU
32-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Debug|x64.Build.0 = Debug|Any CPU
33-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Debug|x86.ActiveCfg = Debug|Any CPU
34-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Debug|x86.Build.0 = Debug|Any CPU
35-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Release|x64.ActiveCfg = Release|Any CPU
38-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Release|x64.Build.0 = Release|Any CPU
39-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Release|x86.ActiveCfg = Release|Any CPU
40-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427}.Release|x86.Build.0 = Release|Any CPU
4129
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4230
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|Any CPU.Build.0 = Debug|Any CPU
4331
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -62,10 +50,22 @@ Global
6250
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|x64.Build.0 = Release|Any CPU
6351
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|x86.ActiveCfg = Release|Any CPU
6452
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|x86.Build.0 = Release|Any CPU
53+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x64.ActiveCfg = Debug|Any CPU
56+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x64.Build.0 = Debug|Any CPU
57+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x86.ActiveCfg = Debug|Any CPU
58+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x86.Build.0 = Debug|Any CPU
59+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|Any CPU.ActiveCfg = Release|Any CPU
60+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|Any CPU.Build.0 = Release|Any CPU
61+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x64.ActiveCfg = Release|Any CPU
62+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x64.Build.0 = Release|Any CPU
63+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x86.ActiveCfg = Release|Any CPU
64+
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x86.Build.0 = Release|Any CPU
6565
EndGlobalSection
6666
GlobalSection(NestedProjects) = preSolution
67-
{EE96C435-FFE9-4F98-9865-47B0DC7C2427} = {E45346EE-74B7-4F5B-943C-FEFDE57124D0}
6867
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F} = {E45346EE-74B7-4F5B-943C-FEFDE57124D0}
6968
{045DC8E9-8CA6-4B76-9C4A-781AB9589700} = {DBC29D13-84FE-4A90-B785-E325BDD494A8}
69+
{8F0BB856-4F83-4898-ACC7-68D672386742} = {E45346EE-74B7-4F5B-943C-FEFDE57124D0}
7070
EndGlobalSection
7171
EndGlobal

aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Domain/Entity/Item.cs renamed to aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Application/Entities/Item.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
using System;
21
using Amazon.DynamoDBv2.DataModel;
32

4-
namespace DotNetServerless.Domain.Entity
3+
namespace DotNetServerless.Application.Entities
54
{
65
public class Item
76
{

aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Domain/Handlers/CreateItemHandler.cs renamed to aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Application/Handlers/CreateItemHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System;
22
using System.Threading;
33
using System.Threading.Tasks;
4-
using DotNetServerless.Domain.Entity;
5-
using DotNetServerless.Domain.Infrastructure.Repositories;
6-
using DotNetServerless.Domain.Requests;
4+
using DotNetServerless.Application.Entities;
5+
using DotNetServerless.Application.Infrastructure.Repositories;
6+
using DotNetServerless.Application.Requests;
77
using MediatR;
88

9-
namespace DotNetServerless.Domain.Handlers
9+
namespace DotNetServerless.Application.Handlers
1010
{
1111
public class CreateItemHandler : IRequestHandler<CreateItemRequest, Item>
1212
{

aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Domain/Handlers/GetItemHandler.cs renamed to aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Application/Handlers/GetItemHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System.Linq;
22
using System.Threading;
33
using System.Threading.Tasks;
4-
using DotNetServerless.Domain.Entity;
5-
using DotNetServerless.Domain.Infrastructure.Repositories;
6-
using DotNetServerless.Domain.Requests;
4+
using DotNetServerless.Application.Entities;
5+
using DotNetServerless.Application.Infrastructure.Repositories;
6+
using DotNetServerless.Application.Requests;
77
using MediatR;
88

9-
namespace DotNetServerless.Domain.Handlers
9+
namespace DotNetServerless.Application.Handlers
1010
{
1111
public class GetItemHandler : IRequestHandler<GetItemRequest, Item>
1212
{

aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Domain/Handlers/UpdateItemHandler.cs renamed to aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Application/Handlers/UpdateItemHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System.Threading;
22
using System.Threading.Tasks;
3-
using DotNetServerless.Domain.Entity;
4-
using DotNetServerless.Domain.Infrastructure.Repositories;
5-
using DotNetServerless.Domain.Requests;
3+
using DotNetServerless.Application.Entities;
4+
using DotNetServerless.Application.Infrastructure.Repositories;
5+
using DotNetServerless.Application.Requests;
66
using MediatR;
77

8-
namespace DotNetServerless.Domain.Handlers
8+
namespace DotNetServerless.Application.Handlers
99
{
1010
public class UpdateItemHandler : IRequestHandler<UpdateItemRequest, Item>
1111
{

aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Domain/Infrastructure/AWSClientFactory.cs renamed to aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Application/Infrastructure/AWSClientFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
22
using Amazon.Runtime;
3-
using DotNetServerless.Domain.Infrastructure.Configs;
3+
using DotNetServerless.Application.Infrastructure.Configs;
44

5-
namespace DotNetServerless.Domain.Infrastructure
5+
namespace DotNetServerless.Application.Infrastructure
66
{
77
public interface IAwsClientFactory<out T>
88
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Amazon.Runtime;
55
using Newtonsoft.Json;
66

7-
namespace DotNetServerless.Domain.Infrastructure.Configs
7+
namespace DotNetServerless.Application.Infrastructure.Configs
88
{
99
public interface IAwsBasicConfiguration
1010
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DotNetServerless.Domain.Infrastructure.Configs
1+
namespace DotNetServerless.Application.Infrastructure.Configs
22
{
33

44
public class DynamoDbConfiguration
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System.Collections.Generic;
22
using System.Threading;
33
using System.Threading.Tasks;
4-
using DotNetServerless.Domain.Entity;
4+
using DotNetServerless.Application.Entities;
55

6-
namespace DotNetServerless.Domain.Infrastructure.Repositories
6+
namespace DotNetServerless.Application.Infrastructure.Repositories
77
{
88
public interface IItemRepository
99
{

0 commit comments

Comments
 (0)