From 9d5bb553356b03726bfc67c52bd15fd286f664eb Mon Sep 17 00:00:00 2001 From: Emmanuel Rojas Date: Fri, 4 Sep 2026 12:45:22 -0500 Subject: [PATCH] fix(architecture): corrections of architecture --- RT.API/Program.cs | 2 +- RT.Application/Services/{ => Contract}/IService.cs | 0 RT.Application/Services/Implementation/AuthService.cs | 2 +- RT.Application/Services/{ => Implementation}/Service.cs | 0 {RT.Infrastructure => RT.Domain}/Identity/ApplicationUser.cs | 2 +- RT.Domain/RT.Domain.csproj | 4 ++++ RT.Infrastructure/Data/AppDbContext.cs | 2 +- 7 files changed, 8 insertions(+), 4 deletions(-) rename RT.Application/Services/{ => Contract}/IService.cs (100%) rename RT.Application/Services/{ => Implementation}/Service.cs (100%) rename {RT.Infrastructure => RT.Domain}/Identity/ApplicationUser.cs (78%) diff --git a/RT.API/Program.cs b/RT.API/Program.cs index ada949e..c39665f 100644 --- a/RT.API/Program.cs +++ b/RT.API/Program.cs @@ -5,7 +5,7 @@ using Microsoft.IdentityModel.Tokens; using RT.Application; using RT.Infrastructure; using RT.Infrastructure.Data; -using RT.Infrastructure.Identity; +using RT.Domain.Identity; using Scalar.AspNetCore; var builder = WebApplication.CreateBuilder(args); diff --git a/RT.Application/Services/IService.cs b/RT.Application/Services/Contract/IService.cs similarity index 100% rename from RT.Application/Services/IService.cs rename to RT.Application/Services/Contract/IService.cs diff --git a/RT.Application/Services/Implementation/AuthService.cs b/RT.Application/Services/Implementation/AuthService.cs index 1dd8d47..d622806 100644 --- a/RT.Application/Services/Implementation/AuthService.cs +++ b/RT.Application/Services/Implementation/AuthService.cs @@ -4,7 +4,7 @@ using RT.Application.Services.Contract; using RT.Domain.DTOs.Auth; using RT.Domain.Entities; using RT.Infrastructure.Data; -using RT.Infrastructure.Identity; +using RT.Domain.Identity; namespace RT.Application.Services.Implementation; diff --git a/RT.Application/Services/Service.cs b/RT.Application/Services/Implementation/Service.cs similarity index 100% rename from RT.Application/Services/Service.cs rename to RT.Application/Services/Implementation/Service.cs diff --git a/RT.Infrastructure/Identity/ApplicationUser.cs b/RT.Domain/Identity/ApplicationUser.cs similarity index 78% rename from RT.Infrastructure/Identity/ApplicationUser.cs rename to RT.Domain/Identity/ApplicationUser.cs index 526873c..c91b849 100644 --- a/RT.Infrastructure/Identity/ApplicationUser.cs +++ b/RT.Domain/Identity/ApplicationUser.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Identity; -namespace RT.Infrastructure.Identity; +namespace RT.Domain.Identity; public class ApplicationUser : IdentityUser { diff --git a/RT.Domain/RT.Domain.csproj b/RT.Domain/RT.Domain.csproj index b760144..bac2a95 100644 --- a/RT.Domain/RT.Domain.csproj +++ b/RT.Domain/RT.Domain.csproj @@ -6,4 +6,8 @@ enable + + + + diff --git a/RT.Infrastructure/Data/AppDbContext.cs b/RT.Infrastructure/Data/AppDbContext.cs index f757286..3efbcfe 100644 --- a/RT.Infrastructure/Data/AppDbContext.cs +++ b/RT.Infrastructure/Data/AppDbContext.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using RT.Domain.Entities; -using RT.Infrastructure.Identity; +using RT.Domain.Identity; namespace RT.Infrastructure.Data;