Skip to content

Commit

Permalink
Collapse Domain, Application, and Infrastructure code into one projec…
Browse files Browse the repository at this point in the history
…t to have all files for a vertical slice in one folder
  • Loading branch information
tjementum committed Aug 29, 2024
1 parent 9db8453 commit 645a1de
Show file tree
Hide file tree
Showing 90 changed files with 248 additions and 417 deletions.
42 changes: 4 additions & 38 deletions application/PlatformPlatform.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,26 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharedKernel.Tests", "share
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "account-management", "account-management", "{EEA1463E-71F8-44E6-8055-787DAA5E62D2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccountManagement.Domain", "account-management\Domain\AccountManagement.Domain.csproj", "{32C5BCAB-FC18-4C32-B008-E0FD125C5E98}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccountManagement.Application", "account-management\Application\AccountManagement.Application.csproj", "{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccountManagement.Infrastructure", "account-management\Infrastructure\AccountManagement.Infrastructure.csproj", "{CB9BAD74-4362-4646-B653-3CB5FCAC74BD}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccountManagement.Core", "account-management\Core\AccountManagement.Core.csproj", "{B155D1D9-4F6E-42AE-A8F0-92CD50BF182D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccountManagement.Workers", "account-management\Workers\AccountManagement.Workers.csproj", "{25F28E3C-84F0-44D6-8EB2-259398C2D14A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccountManagement.Api", "account-management\Api\AccountManagement.Api.csproj", "{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE}"
EndProject
Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "AccountManagement.WebApp", "account-management\WebApp\AccountManagement.WebApp.esproj", "{8292F35B-F0F6-4DB1-90E2-4707DB8C7104}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{92101687-8181-4543-84F9-E702DD874619}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AccountManagement.Tests", "account-management\Tests\AccountManagement.Tests.csproj", "{ABEB4337-3606-4730-8ABE-94DF98C2C348}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "back-office", "back-office", "{E6B8D5DB-DA05-42EA-8DD0-EAE366870126}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackOffice.Domain", "back-office\Domain\BackOffice.Domain.csproj", "{81B7EAFF-E5FA-481D-8C8B-CFD419DC0A21}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackOffice.Application", "back-office\Application\BackOffice.Application.csproj", "{1C858857-C5E6-41C6-AFA9-E845F6DDBDF0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackOffice.Infrastructure", "back-office\Infrastructure\BackOffice.Infrastructure.csproj", "{82FDD188-D4FC-43B6-B74E-EA6A1D1D2161}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackOffice.Core", "back-office\Core\BackOffice.Core.csproj", "{1C858857-C5E6-41C6-AFA9-E845F6DDBDF0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackOffice.Workers", "back-office\Workers\BackOffice.Workers.csproj", "{B165AE99-0B83-4EDC-8BBF-99FB726E5634}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackOffice.Api", "back-office\Api\BackOffice.Api.csproj", "{0E54670F-1D0C-4753-B5AC-CA618780925D}"
EndProject
Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "BackOffice.WebApp", "back-office\WebApp\BackOffice.WebApp.esproj", "{B1C5EFF3-B6EF-4B8F-B392-0E1AA2D81533}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{045A7336-D89B-493E-9C2C-92DCC2CC4D0E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackOffice.Tests", "back-office\Tests\BackOffice.Tests.csproj", "{62DB02EA-D720-46DC-BB78-13771E6D9A12}"
EndProject
Global
Expand Down Expand Up @@ -93,18 +81,10 @@ Global
{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
{25F28E3C-84F0-44D6-8EB2-259398C2D14A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{25F28E3C-84F0-44D6-8EB2-259398C2D14A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{25F28E3C-84F0-44D6-8EB2-259398C2D14A}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -121,18 +101,10 @@ Global
{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
{81B7EAFF-E5FA-481D-8C8B-CFD419DC0A21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{81B7EAFF-E5FA-481D-8C8B-CFD419DC0A21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{81B7EAFF-E5FA-481D-8C8B-CFD419DC0A21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{81B7EAFF-E5FA-481D-8C8B-CFD419DC0A21}.Release|Any CPU.Build.0 = Release|Any CPU
{1C858857-C5E6-41C6-AFA9-E845F6DDBDF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1C858857-C5E6-41C6-AFA9-E845F6DDBDF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C858857-C5E6-41C6-AFA9-E845F6DDBDF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C858857-C5E6-41C6-AFA9-E845F6DDBDF0}.Release|Any CPU.Build.0 = Release|Any CPU
{82FDD188-D4FC-43B6-B74E-EA6A1D1D2161}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82FDD188-D4FC-43B6-B74E-EA6A1D1D2161}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82FDD188-D4FC-43B6-B74E-EA6A1D1D2161}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82FDD188-D4FC-43B6-B74E-EA6A1D1D2161}.Release|Any CPU.Build.0 = Release|Any CPU
{B165AE99-0B83-4EDC-8BBF-99FB726E5634}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B165AE99-0B83-4EDC-8BBF-99FB726E5634}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B165AE99-0B83-4EDC-8BBF-99FB726E5634}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -161,22 +133,16 @@ Global
{72F46822-5815-48E0-9E2C-F95A4D58CB3F} = {F01E4DC8-2A8B-4CB9-893A-B3B8FF2EFE22}
{9E2EF0B0-2A92-489B-8910-070C871197B0} = {F01E4DC8-2A8B-4CB9-893A-B3B8FF2EFE22}
{B232D7BB-396A-46FE-B6D2-95041412C835} = {9E2EF0B0-2A92-489B-8910-070C871197B0}
{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}
{25F28E3C-84F0-44D6-8EB2-259398C2D14A} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2}
{4AF4767C-1BF5-4B86-9050-F05ABF6AF4BE} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2}
{8292F35B-F0F6-4DB1-90E2-4707DB8C7104} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2}
{92101687-8181-4543-84F9-E702DD874619} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2}
{ABEB4337-3606-4730-8ABE-94DF98C2C348} = {92101687-8181-4543-84F9-E702DD874619}
{81B7EAFF-E5FA-481D-8C8B-CFD419DC0A21} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
{1C858857-C5E6-41C6-AFA9-E845F6DDBDF0} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
{82FDD188-D4FC-43B6-B74E-EA6A1D1D2161} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
{B165AE99-0B83-4EDC-8BBF-99FB726E5634} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
{0E54670F-1D0C-4753-B5AC-CA618780925D} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
{B1C5EFF3-B6EF-4B8F-B392-0E1AA2D81533} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
{045A7336-D89B-493E-9C2C-92DCC2CC4D0E} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
{62DB02EA-D720-46DC-BB78-13771E6D9A12} = {045A7336-D89B-493E-9C2C-92DCC2CC4D0E}
{ABEB4337-3606-4730-8ABE-94DF98C2C348} = {EEA1463E-71F8-44E6-8055-787DAA5E62D2}
{62DB02EA-D720-46DC-BB78-13771E6D9A12} = {E6B8D5DB-DA05-42EA-8DD0-EAE366870126}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
Expand Down
4 changes: 1 addition & 3 deletions application/account-management/AccountManagement.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"shared-kernel\\InfrastructureCore\\SharedKernel.InfrastructureCore.csproj",
"shared-kernel\\ApiCore\\SharedKernel.ApiCore.csproj",
"shared-kernel\\Tests\\SharedKernel.Tests.csproj",
"account-management\\Domain\\AccountManagement.Domain.csproj",
"account-management\\Application\\AccountManagement.Application.csproj",
"account-management\\Infrastructure\\AccountManagement.Infrastructure.csproj",
"account-management\\Core\\AccountManagement.Core.csproj",
"account-management\\Workers\\AccountManagement.Workers.csproj",
"account-management\\Api\\AccountManagement.Api.csproj",
"account-management\\WebApp\\AccountManagement.WebApp.esproj",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

<ItemGroup>
<ProjectReference Include="..\..\shared-kernel\ApiCore\SharedKernel.ApiCore.csproj" />
<ProjectReference Include="..\Application\AccountManagement.Application.csproj" />
<ProjectReference Include="..\Infrastructure\AccountManagement.Infrastructure.csproj" />
<ProjectReference Include="..\Core\AccountManagement.Core.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using PlatformPlatform.AccountManagement.Application.Authentication;
using PlatformPlatform.AccountManagement.Domain.Authentication;
using PlatformPlatform.AccountManagement.Core.Authentication.Commands;
using PlatformPlatform.AccountManagement.Core.Authentication.Domain;
using PlatformPlatform.SharedKernel.ApiCore.ApiResults;
using PlatformPlatform.SharedKernel.ApiCore.Endpoints;

Expand Down Expand Up @@ -27,7 +27,7 @@ public void MapEndpoints(IEndpointRouteBuilder routes)

// Note: This endpoint must be called with the refresh token as Bear token in the Authorization header
group.MapPost("refresh-authentication-tokens", async Task<ApiResult> (ISender mediator)
=> await mediator.Send(new RefreshAuthenticationTokensCommand())
=> await mediator.Send(new RefreshAuthenticationTokens())
);
}
}
11 changes: 4 additions & 7 deletions application/account-management/Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using PlatformPlatform.AccountManagement.Application;
using PlatformPlatform.AccountManagement.Domain;
using PlatformPlatform.AccountManagement.Infrastructure;
using PlatformPlatform.AccountManagement.Core;
using PlatformPlatform.SharedKernel.ApiCore;
using PlatformPlatform.SharedKernel.ApiCore.SinglePageApp;

Expand All @@ -9,10 +7,9 @@
// Configure services for the Application, Infrastructure, and Api layers like Entity Framework, Repositories, MediatR,
// FluentValidation validators, Pipelines.
builder.Services
.AddApplicationServices(builder.Configuration)
.AddInfrastructureServices()
.AddApiCoreServices(builder, Assembly.GetExecutingAssembly(), DomainConfiguration.Assembly)
.AddConfigureStorage(builder)
.AddServices(builder.Configuration)
.AddApiCoreServices(builder, Assembly.GetExecutingAssembly(), DependencyConfiguration.Assembly)
.AddStorage(builder)
.AddSinglePageAppFallback()
.ConfigureDevelopmentPort(builder, 9100);

Expand Down
5 changes: 3 additions & 2 deletions application/account-management/Api/Signups/SignupEndpoints.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using PlatformPlatform.AccountManagement.Application.Signups;
using PlatformPlatform.AccountManagement.Domain.Signups;
using PlatformPlatform.AccountManagement.Core.Signups.Commands;
using PlatformPlatform.AccountManagement.Core.Signups.Domain;
using PlatformPlatform.AccountManagement.Core.Signups.Queries;
using PlatformPlatform.SharedKernel.ApiCore.ApiResults;
using PlatformPlatform.SharedKernel.ApiCore.Endpoints;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using PlatformPlatform.AccountManagement.Application.Tenants;
using PlatformPlatform.AccountManagement.Core.Tenants.Commands;
using PlatformPlatform.AccountManagement.Core.Tenants.Domain;
using PlatformPlatform.AccountManagement.Core.Tenants.Queries;
using PlatformPlatform.SharedKernel.ApiCore.ApiResults;
using PlatformPlatform.SharedKernel.ApiCore.Endpoints;

Expand Down
4 changes: 3 additions & 1 deletion application/account-management/Api/Users/UserEndpoints.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using PlatformPlatform.AccountManagement.Application.Users;
using PlatformPlatform.AccountManagement.Core.Users.Commands;
using PlatformPlatform.AccountManagement.Core.Users.Domain;
using PlatformPlatform.AccountManagement.Core.Users.Queries;
using PlatformPlatform.SharedKernel.ApiCore.ApiResults;
using PlatformPlatform.SharedKernel.ApiCore.Endpoints;

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>PlatformPlatform.AccountManagement.Application</AssemblyName>
<RootNamespace>PlatformPlatform.AccountManagement.Application</RootNamespace>
<AssemblyName>PlatformPlatform.AccountManagement.Core</AssemblyName>
<RootNamespace>PlatformPlatform.AccountManagement.Core</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\shared-kernel\ApplicationCore\SharedKernel.ApplicationCore.csproj" />
<ProjectReference Include="..\Domain\AccountManagement.Domain.csproj" />
<ProjectReference Include="..\..\shared-kernel\InfrastructureCore\SharedKernel.InfrastructureCore.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using PlatformPlatform.AccountManagement.Application.TelemetryEvents;
using PlatformPlatform.AccountManagement.Domain.Authentication;
using PlatformPlatform.AccountManagement.Core.Authentication.Domain;
using PlatformPlatform.AccountManagement.Core.Authentication.Services;
using PlatformPlatform.AccountManagement.Core.TelemetryEvents;
using PlatformPlatform.AccountManagement.Core.Users.Domain;
using PlatformPlatform.SharedKernel.ApplicationCore.Authentication;
using PlatformPlatform.SharedKernel.ApplicationCore.Cqrs;
using PlatformPlatform.SharedKernel.ApplicationCore.TelemetryEvents;

namespace PlatformPlatform.AccountManagement.Application.Authentication;
namespace PlatformPlatform.AccountManagement.Core.Authentication.Commands;

public sealed record CompleteLoginCommand(string OneTimePassword)
: ICommand, IRequest<Result>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Security.Claims;
using Microsoft.AspNetCore.Http;
using PlatformPlatform.AccountManagement.Application.TelemetryEvents;
using PlatformPlatform.AccountManagement.Core.Authentication.Services;
using PlatformPlatform.AccountManagement.Core.TelemetryEvents;
using PlatformPlatform.AccountManagement.Core.Users.Domain;
using PlatformPlatform.SharedKernel.ApplicationCore.Cqrs;
using PlatformPlatform.SharedKernel.ApplicationCore.TelemetryEvents;

namespace PlatformPlatform.AccountManagement.Application.Authentication;
namespace PlatformPlatform.AccountManagement.Core.Authentication.Commands;

public sealed record LogoutCommand
: ICommand, IRequest<Result>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Microsoft.AspNetCore.Http;
using PlatformPlatform.AccountManagement.Application.TelemetryEvents;
using PlatformPlatform.AccountManagement.Core.Authentication.Services;
using PlatformPlatform.AccountManagement.Core.TelemetryEvents;
using PlatformPlatform.AccountManagement.Core.Users.Domain;
using PlatformPlatform.SharedKernel.ApplicationCore.Cqrs;
using PlatformPlatform.SharedKernel.ApplicationCore.TelemetryEvents;

namespace PlatformPlatform.AccountManagement.Application.Authentication;
namespace PlatformPlatform.AccountManagement.Core.Authentication.Commands;

public sealed record RefreshAuthenticationTokensCommand
public sealed record RefreshAuthenticationTokens
: ICommand, IRequest<Result>;

public sealed class RefreshAuthenticationTokensCommandHandler(
Expand All @@ -16,9 +18,9 @@ public sealed class RefreshAuthenticationTokensCommandHandler(
AuthenticationTokenService authenticationTokenService,
ITelemetryEventsCollector events,
ILogger<RefreshAuthenticationTokensCommandHandler> logger
) : IRequestHandler<RefreshAuthenticationTokensCommand, Result>
) : IRequestHandler<RefreshAuthenticationTokens, Result>
{
public async Task<Result> Handle(RefreshAuthenticationTokensCommand command, CancellationToken cancellationToken)
public async Task<Result> Handle(RefreshAuthenticationTokens command, CancellationToken cancellationToken)
{
var httpContext = httpContextAccessor.HttpContext ?? throw new InvalidOperationException("HttpContext is null.");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using FluentValidation;
using Microsoft.AspNetCore.Identity;
using PlatformPlatform.AccountManagement.Application.TelemetryEvents;
using PlatformPlatform.AccountManagement.Domain.Authentication;
using PlatformPlatform.AccountManagement.Core.Authentication.Domain;
using PlatformPlatform.AccountManagement.Core.TelemetryEvents;
using PlatformPlatform.AccountManagement.Core.Users.Domain;
using PlatformPlatform.SharedKernel.ApplicationCore.Authentication;
using PlatformPlatform.SharedKernel.ApplicationCore.Cqrs;
using PlatformPlatform.SharedKernel.ApplicationCore.Services;
using PlatformPlatform.SharedKernel.ApplicationCore.TelemetryEvents;
using PlatformPlatform.SharedKernel.ApplicationCore.Validation;

namespace PlatformPlatform.AccountManagement.Application.Authentication;
namespace PlatformPlatform.AccountManagement.Core.Authentication.Commands;

public sealed record StartLoginCommand(string Email)
: ICommand, IRequest<Result<StartLoginResponse>>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using PlatformPlatform.SharedKernel.DomainCore.Entities;

namespace PlatformPlatform.AccountManagement.Domain.Authentication;
namespace PlatformPlatform.AccountManagement.Core.Authentication.Domain;

public interface ILoginRepository : ICrudRepository<Login, LoginId>;
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using JetBrains.Annotations;
using PlatformPlatform.AccountManagement.Core.Tenants.Domain;
using PlatformPlatform.AccountManagement.Core.Users.Domain;
using PlatformPlatform.SharedKernel.DomainCore.Entities;
using PlatformPlatform.SharedKernel.DomainCore.Identity;

namespace PlatformPlatform.AccountManagement.Domain.Authentication;
namespace PlatformPlatform.AccountManagement.Core.Authentication.Domain;

public sealed class Login : AggregateRoot<LoginId>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using PlatformPlatform.AccountManagement.Domain.Authentication;
using PlatformPlatform.AccountManagement.Core.Database;
using PlatformPlatform.SharedKernel.InfrastructureCore.Persistence;

namespace PlatformPlatform.AccountManagement.Infrastructure.Authentication;
namespace PlatformPlatform.AccountManagement.Core.Authentication.Domain;

public sealed class LoginRepository(AccountManagementDbContext accountManagementDbContext)
: RepositoryBase<Login, LoginId>(accountManagementDbContext), ILoginRepository;
Loading

0 comments on commit 645a1de

Please sign in to comment.