Skip to content

Commit 8adf0ed

Browse files
Refactor to Vertical Slices!
1 parent f6f89ca commit 8adf0ed

File tree

140 files changed

+545
-574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+545
-574
lines changed

CrispyCollab.sln

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.32014.148
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Domain", "Source\Layers\Domain\Domain.csproj", "{D4A2F719-073B-4CC4-A28C-B7BCDF97F65B}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "Source\Layers\Domain\Common.csproj", "{D4A2F719-073B-4CC4-A28C-B7BCDF97F65B}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{39CA6719-7F11-4A72-946C-8970E56C4658}"
99
EndProject
@@ -13,9 +13,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Infrastructure", "Source\La
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Web", "Web", "{C4071F52-4845-40DB-BF73-9625EB786C64}"
1515
EndProject
16-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Application", "Source\Layers\Application\Application.csproj", "{9BA3E074-87AE-40D9-B689-7F1B6AC6D7E0}"
16+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modules", "Source\Layers\Application\Modules.csproj", "{9BA3E074-87AE-40D9-B689-7F1B6AC6D7E0}"
1717
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebShared", "Source\Web\DTOs\WebShared.csproj", "{601C36BA-7AAF-456C-9FC5-91A166D9BF5A}"
18+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DTOs", "Source\Web\DTOs\DTOs.csproj", "{601C36BA-7AAF-456C-9FC5-91A166D9BF5A}"
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebServer", "Source\Web\WebServer\WebServer.csproj", "{C14DC1DC-EB41-45A9-A27B-7DA3A94BF2C4}"
2121
EndProject
@@ -27,8 +27,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests", "Tests\UnitTest
2727
EndProject
2828
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntegrationTests", "Tests\IntegrationTests\IntegrationTests.csproj", "{2E006C34-0AC7-44A7-806B-E4107966C89A}"
2929
EndProject
30-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "Source\Common\Common.csproj", "{281EA770-BE2F-4B3C-AE4C-355202B3A3DC}"
31-
EndProject
3230
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Layers", "Layers", "{18E02F7B-A23D-4EAA-A761-89C2C7C4B51D}"
3331
EndProject
3432
Global
@@ -73,10 +71,6 @@ Global
7371
{2E006C34-0AC7-44A7-806B-E4107966C89A}.Debug|Any CPU.Build.0 = Debug|Any CPU
7472
{2E006C34-0AC7-44A7-806B-E4107966C89A}.Release|Any CPU.ActiveCfg = Release|Any CPU
7573
{2E006C34-0AC7-44A7-806B-E4107966C89A}.Release|Any CPU.Build.0 = Release|Any CPU
76-
{281EA770-BE2F-4B3C-AE4C-355202B3A3DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
77-
{281EA770-BE2F-4B3C-AE4C-355202B3A3DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
78-
{281EA770-BE2F-4B3C-AE4C-355202B3A3DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
79-
{281EA770-BE2F-4B3C-AE4C-355202B3A3DC}.Release|Any CPU.Build.0 = Release|Any CPU
8074
EndGlobalSection
8175
GlobalSection(SolutionProperties) = preSolution
8276
HideSolutionNode = FALSE
@@ -92,7 +86,6 @@ Global
9286
{592A64E3-3D1A-4B58-B57E-7CB02224CA4A} = {C4046A49-D1FA-400C-B7D7-5414868DDCE8}
9387
{8516652E-DAFF-4354-AC22-006CC731EB1C} = {C4046A49-D1FA-400C-B7D7-5414868DDCE8}
9488
{2E006C34-0AC7-44A7-806B-E4107966C89A} = {C4046A49-D1FA-400C-B7D7-5414868DDCE8}
95-
{281EA770-BE2F-4B3C-AE4C-355202B3A3DC} = {39CA6719-7F11-4A72-946C-8970E56C4658}
9689
{18E02F7B-A23D-4EAA-A761-89C2C7C4B51D} = {39CA6719-7F11-4A72-946C-8970E56C4658}
9790
EndGlobalSection
9891
GlobalSection(ExtensibilityGlobals) = postSolution

Source/Layers/Application/Aggregates/TopicAggregate/Commands/CreateTopicCommand.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

Source/Layers/Application/Aggregates/TopicAggregate/Queries/AllTopicsQuery.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

Source/Layers/Application/Aggregates/TopicAggregate/Queries/TopicByIdQuery.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

Source/Layers/Application/Application.csproj

Lines changed: 0 additions & 22 deletions
This file was deleted.

Source/Layers/Application/Aggregates/ChannelAggregate/Commands/AddMessageToChannelCommand.cs renamed to Source/Layers/Application/ChannelModule/Application/Commands/AddMessageToChannelCommand.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
using Domain.Aggregates.ChannelAggregate;
1+
using Modules.ChannelModule.Domain;
22
using Infrastructure.CQRS.Command;
33
using Infrastructure.EFCore;
44
using Microsoft.EntityFrameworkCore;
5+
using Modules.ChannelModule.Domain;
56
using System;
67
using System.Linq;
78
using System.Threading;
89
using System.Threading.Tasks;
10+
using Modules.ChannelModule.Infrastructure.EFCore;
911

1012
namespace Application.ChannelAggregate.Commands
1113
{
@@ -16,8 +18,8 @@ public class AddMessageToChannelCommand : ICommand
1618
}
1719
public class AddMessageToChannelCommandHandler : ICommandHandler<AddMessageToChannelCommand>
1820
{
19-
private readonly ApplicationDbContext applicationDbContext;
20-
public AddMessageToChannelCommandHandler(ApplicationDbContext applicationDbContext)
21+
private readonly ChannelDbContext applicationDbContext;
22+
public AddMessageToChannelCommandHandler(ChannelDbContext applicationDbContext)
2123
{
2224
this.applicationDbContext = applicationDbContext;
2325
}

Source/Layers/Application/Aggregates/ChannelAggregate/Commands/ChangeChannelNameCommand.cs renamed to Source/Layers/Application/ChannelModule/Application/Commands/ChangeChannelNameCommand.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
using Domain.Aggregates.ChannelAggregate;
1+
using Modules.ChannelModule.Domain;
22
using Infrastructure.CQRS.Command;
33
using Infrastructure.EFCore;
44
using Microsoft.EntityFrameworkCore;
5+
using Modules.ChannelModule.Domain;
56
using System;
67
using System.Collections.Generic;
78
using System.Linq;
89
using System.Text;
910
using System.Threading;
1011
using System.Threading.Tasks;
12+
using Modules.ChannelModule.Infrastructure.EFCore;
1113

1214
namespace Application.ChannelAggregate
1315
{
@@ -18,8 +20,8 @@ public class ChangeChannelNameCommand : ICommand
1820
}
1921
public class ChangeChannelNameCommandHandler : ICommandHandler<ChangeChannelNameCommand>
2022
{
21-
private readonly ApplicationDbContext applicationDbContext;
22-
public ChangeChannelNameCommandHandler(ApplicationDbContext applicationDbContext)
23+
private readonly ChannelDbContext applicationDbContext;
24+
public ChangeChannelNameCommandHandler(ChannelDbContext applicationDbContext)
2325
{
2426
this.applicationDbContext = applicationDbContext;
2527
}

Source/Layers/Application/Aggregates/ChannelAggregate/Commands/CreateChannelCommand.cs renamed to Source/Layers/Application/ChannelModule/Application/Commands/CreateChannelCommand.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
using Domain.Aggregates.ChannelAggregate;
1+
using Modules.ChannelModule.Domain;
22
using Infrastructure.CQRS.Command;
33
using Infrastructure.EFCore;
44
using Infrastructure.Interfaces;
55
using System.Threading;
66
using System.Threading.Tasks;
7+
using Modules.ChannelModule.Infrastructure.EFCore;
78

89
namespace Application.ChannelAggregate
910
{
@@ -14,9 +15,9 @@ public class CreateChannelCommand : ICommand
1415
}
1516
public class CreateChannelCommandHandler : ICommandHandler<CreateChannelCommand>
1617
{
17-
private readonly ApplicationDbContext applicationDbContext;
18+
private readonly ChannelDbContext applicationDbContext;
1819
private readonly ITenantResolver teamResolver;
19-
public CreateChannelCommandHandler(ApplicationDbContext applicationDbContext, ITenantResolver teamResolver)
20+
public CreateChannelCommandHandler(ChannelDbContext applicationDbContext, ITenantResolver teamResolver)
2021
{
2122
this.applicationDbContext = applicationDbContext;
2223
this.teamResolver = teamResolver;

Source/Layers/Application/Aggregates/ChannelAggregate/Commands/DeleteChannelCommand.cs renamed to Source/Layers/Application/ChannelModule/Application/Commands/DeleteChannelCommand.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
using Domain.Aggregates.ChannelAggregate;
1+
using Modules.ChannelModule.Domain;
22
using Infrastructure.CQRS.Command;
33
using Infrastructure.EFCore;
44
using Infrastructure.Interfaces;
5+
using Modules.ChannelModule.Domain;
56
using System;
67
using System.Linq;
78
using System.Threading;
89
using System.Threading.Tasks;
10+
using Modules.ChannelModule.Infrastructure.EFCore;
911

1012
namespace Application.ChannelAggregate
1113
{
@@ -15,9 +17,9 @@ public class DeleteChannelCommand : ICommand
1517
}
1618
public class DeleteChannelCommandCommandHandler : ICommandHandler<DeleteChannelCommand>
1719
{
18-
private readonly ApplicationDbContext applicationDbContext;
20+
private readonly ChannelDbContext applicationDbContext;
1921
private readonly ITenantResolver teamResolver;
20-
public DeleteChannelCommandCommandHandler(ApplicationDbContext applicationDbContext, ITenantResolver teamResolver)
22+
public DeleteChannelCommandCommandHandler(ChannelDbContext applicationDbContext, ITenantResolver teamResolver)
2123
{
2224
this.applicationDbContext = applicationDbContext;
2325
this.teamResolver = teamResolver;

Source/Layers/Application/Aggregates/ChannelAggregate/Commands/DeleteMessageFromChannelCommand.cs renamed to Source/Layers/Application/ChannelModule/Application/Commands/DeleteMessageFromChannelCommand.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
using Domain.Aggregates.ChannelAggregate;
1+
using Modules.ChannelModule.Domain;
22
using Infrastructure.CQRS.Command;
33
using Infrastructure.EFCore;
44
using Microsoft.EntityFrameworkCore;
5+
using Modules.ChannelModule.Domain;
56
using System;
67
using System.Collections.Generic;
78
using System.Linq;
89
using System.Text;
910
using System.Threading;
1011
using System.Threading.Tasks;
12+
using Modules.ChannelModule.Infrastructure.EFCore;
1113

1214
namespace Application.ChannelAggregate.Commands
1315
{
@@ -18,8 +20,8 @@ public class DeleteMessageFromChannelCommand : ICommand
1820
}
1921
public class DeleteMessageFromChannelCommandHandler : ICommandHandler<DeleteMessageFromChannelCommand>
2022
{
21-
private readonly ApplicationDbContext applicationDbContext;
22-
public DeleteMessageFromChannelCommandHandler(ApplicationDbContext applicationDbContext)
23+
private readonly ChannelDbContext applicationDbContext;
24+
public DeleteMessageFromChannelCommandHandler(ChannelDbContext applicationDbContext)
2325
{
2426
this.applicationDbContext = applicationDbContext;
2527
}

0 commit comments

Comments
 (0)