-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create global PlatformPlatform solution and extract reusable backend …
…foundation (#113) ### Summary & Motivation This pull request establishes a new top-level PlatformPlatform .NET solution, replacing the former AccountManagement solution. It extracts a reusable backend-foundation from account management. The previous Foundation project is divided into three sub-projects: `DomainModeling`, `InfrastructureCore`, and `AspNetCoreUtils`. This division ensures that dependencies don't leak into other areas. These projects introduce a meaningful namespace structure that includes `Entities`, `Persistence`, `Validation`, `Identity`, `Cqrs`, `DomainEvents`, etc. Several minor refactorings have been performed to enhance the overall clarity of the solution. For example, the creation of a `RepositoryBase<T, TId>` removes the boiler code needed to create a concrete repository like TenantRepository. Furthermore, service registration now utilizes a fluent API for greater readability and efficiency. ### Checklist - [x] I have added a Label to the pull-request - [x] I have added tests, and done manual regression tests - [x] I have updated the documentation, if necessary
- Loading branch information
Showing
96 changed files
with
417 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,7 @@ _ReSharper*/ | |
*.DotSettings.user | ||
|
||
# Rider | ||
*/.idea | ||
.idea | ||
|
||
# TeamCity is a build add-in | ||
_TeamCity* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "backend-foundation", "backend-foundation", "{F01E4DC8-2A8B-4CB9-893A-B3B8FF2EFE22}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DomainModeling", "backend-foundation\DomainModeling\DomainModeling.csproj", "{9781DA05-517E-46D7-9F8B-2C01AA74F1E4}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfrastructureCore", "backend-foundation\InfrastructureCore\InfrastructureCore.csproj", "{2B5B1AC7-7254-4527-B0F0-8F0A203CB625}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetCoreUtils", "backend-foundation\AspNetCoreUtils\AspNetCoreUtils.csproj", "{836ABCEF-C16B-4331-B8D5-0EA75E4101FE}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "backend-foundation\Tests\Tests.csproj", "{B232D7BB-396A-46FE-B6D2-95041412C835}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "account-management", "account-management", "{EEA1463E-71F8-44E6-8055-787DAA5E62D2}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domain", "account-management\Domain\Domain.csproj", "{32C5BCAB-FC18-4C32-B008-E0FD125C5E98}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Application", "account-management\Application\Application.csproj", "{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Infrastructure", "account-management\Infrastructure\Infrastructure.csproj", "{CB9BAD74-4362-4646-B653-3CB5FCAC74BD}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApi", "account-management\WebApi\WebApi.csproj", "{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "account-management\Tests\Tests.csproj", "{ABEB4337-3606-4730-8ABE-94DF98C2C348}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{9781DA05-517E-46D7-9F8B-2C01AA74F1E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{9781DA05-517E-46D7-9F8B-2C01AA74F1E4}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{9781DA05-517E-46D7-9F8B-2C01AA74F1E4}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{9781DA05-517E-46D7-9F8B-2C01AA74F1E4}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{2B5B1AC7-7254-4527-B0F0-8F0A203CB625}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2B5B1AC7-7254-4527-B0F0-8F0A203CB625}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{2B5B1AC7-7254-4527-B0F0-8F0A203CB625}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{2B5B1AC7-7254-4527-B0F0-8F0A203CB625}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{836ABCEF-C16B-4331-B8D5-0EA75E4101FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{836ABCEF-C16B-4331-B8D5-0EA75E4101FE}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{836ABCEF-C16B-4331-B8D5-0EA75E4101FE}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{836ABCEF-C16B-4331-B8D5-0EA75E4101FE}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{B232D7BB-396A-46FE-B6D2-95041412C835}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B232D7BB-396A-46FE-B6D2-95041412C835}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B232D7BB-396A-46FE-B6D2-95041412C835}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B232D7BB-396A-46FE-B6D2-95041412C835}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{32C5BCAB-FC18-4C32-B008-E0FD125C5E98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{32C5BCAB-FC18-4C32-B008-E0FD125C5E98}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{32C5BCAB-FC18-4C32-B008-E0FD125C5E98}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{32C5BCAB-FC18-4C32-B008-E0FD125C5E98}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{CB9BAD74-4362-4646-B653-3CB5FCAC74BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{CB9BAD74-4362-4646-B653-3CB5FCAC74BD}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{CB9BAD74-4362-4646-B653-3CB5FCAC74BD}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{CB9BAD74-4362-4646-B653-3CB5FCAC74BD}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{ABEB4337-3606-4730-8ABE-94DF98C2C348}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{ABEB4337-3606-4730-8ABE-94DF98C2C348}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{ABEB4337-3606-4730-8ABE-94DF98C2C348}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{ABEB4337-3606-4730-8ABE-94DF98C2C348}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{9781DA05-517E-46D7-9F8B-2C01AA74F1E4} = {F01E4DC8-2A8B-4CB9-893A-B3B8FF2EFE22} | ||
{2B5B1AC7-7254-4527-B0F0-8F0A203CB625} = {F01E4DC8-2A8B-4CB9-893A-B3B8FF2EFE22} | ||
{836ABCEF-C16B-4331-B8D5-0EA75E4101FE} = {F01E4DC8-2A8B-4CB9-893A-B3B8FF2EFE22} | ||
{B232D7BB-396A-46FE-B6D2-95041412C835} = {F01E4DC8-2A8B-4CB9-893A-B3B8FF2EFE22} | ||
{32C5BCAB-FC18-4C32-B008-E0FD125C5E98} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2} | ||
{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2} | ||
{CB9BAD74-4362-4646-B653-3CB5FCAC74BD} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2} | ||
{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2} | ||
{ABEB4337-3606-4730-8ABE-94DF98C2C348} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2} | ||
EndGlobalSection | ||
EndGlobal |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...t/src/Domain/Tenants/ITenantRepository.cs → ...ement/Domain/Tenants/ITenantRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...t-management/src/Domain/Tenants/Tenant.cs → account-management/Domain/Tenants/Tenant.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../src/Domain/Tenants/TenantCreatedEvent.cs → ...ment/Domain/Tenants/TenantCreatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...nt/src/Domain/Tenants/TenantValidation.cs → ...gement/Domain/Tenants/TenantValidation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/Infrastructure/ApplicationDbContext.cs → ...nt/Infrastructure/ApplicationDbContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.