From b318f2415c38bccbf029eb1a8512abe4d230a1be56b094b1c3b5973cddb26c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= <93217193+Daniel-Garmig@users.noreply.github.com> Date: Tue, 1 Sep 2026 15:28:54 +0200 Subject: [PATCH] feat StayExport - Moved Entity Services. --- src/Somnia.GuestLog/Program.cs | 2 +- .../IStayExportFileEntityService.cs} | 4 ++-- .../StayExportFileEntityService.cs} | 8 ++++---- .../Services/StayExport/JsonStayExportService.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename src/Somnia.GuestLog/Services/{IStayExportFileService.cs => Entity/IStayExportFileEntityService.cs} (82%) rename src/Somnia.GuestLog/Services/{StayExportFileService.cs => Entity/StayExportFileEntityService.cs} (95%) diff --git a/src/Somnia.GuestLog/Program.cs b/src/Somnia.GuestLog/Program.cs index 42740a5..6ef7ff6 100644 --- a/src/Somnia.GuestLog/Program.cs +++ b/src/Somnia.GuestLog/Program.cs @@ -59,7 +59,7 @@ builder.Services.AddSingleton, StayEntryDTOValidator>() // Add Entity Services builder.Services.AddSingleton(); builder.Services.AddSingleton(); -builder.Services.AddSingleton(); +builder.Services.AddSingleton(); // Add Services builder.Services.AddSingleton(); diff --git a/src/Somnia.GuestLog/Services/IStayExportFileService.cs b/src/Somnia.GuestLog/Services/Entity/IStayExportFileEntityService.cs similarity index 82% rename from src/Somnia.GuestLog/Services/IStayExportFileService.cs rename to src/Somnia.GuestLog/Services/Entity/IStayExportFileEntityService.cs index f06eb30..6b9f116 100644 --- a/src/Somnia.GuestLog/Services/IStayExportFileService.cs +++ b/src/Somnia.GuestLog/Services/Entity/IStayExportFileEntityService.cs @@ -1,8 +1,8 @@ using Somnia.GuestLog.Models.DTOs; -namespace Somnia.GuestLog.Services; +namespace Somnia.GuestLog.Services.Entity; -public interface IStayExportFileService +public interface IStayExportFileEntityService { public Task CreateStayExportAsync(StayExportFileDTO dto); public Task UpdateStayExportAsync(StayExportFileDTO dto); diff --git a/src/Somnia.GuestLog/Services/StayExportFileService.cs b/src/Somnia.GuestLog/Services/Entity/StayExportFileEntityService.cs similarity index 95% rename from src/Somnia.GuestLog/Services/StayExportFileService.cs rename to src/Somnia.GuestLog/Services/Entity/StayExportFileEntityService.cs index 8f2df56..e1f3219 100644 --- a/src/Somnia.GuestLog/Services/StayExportFileService.cs +++ b/src/Somnia.GuestLog/Services/Entity/StayExportFileEntityService.cs @@ -5,12 +5,12 @@ using Somnia.GuestLog.Models; using Somnia.GuestLog.Models.DTOs; using Somnia.GuestLog.Models.Entities; -namespace Somnia.GuestLog.Services; +namespace Somnia.GuestLog.Services.Entity; -public class StayExportFileService( - ILogger logger, +public class StayExportFileEntityService( + ILogger logger, IDbContextFactory contextFactory -) : IStayExportFileService +) : IStayExportFileEntityService { public async Task CreateStayExportAsync(StayExportFileDTO dto) { diff --git a/src/Somnia.GuestLog/Services/StayExport/JsonStayExportService.cs b/src/Somnia.GuestLog/Services/StayExport/JsonStayExportService.cs index 44a918e..a3f91de 100644 --- a/src/Somnia.GuestLog/Services/StayExport/JsonStayExportService.cs +++ b/src/Somnia.GuestLog/Services/StayExport/JsonStayExportService.cs @@ -13,7 +13,7 @@ namespace Somnia.GuestLog.Services.StayExport; public class JsonStayExportService( ILogger logger, - IStayExportFileService stayExportEntityService, + IStayExportFileEntityService stayExportEntityService, IStayEntryEntityService stayEntityService, IOptions exportConfig ) : IStayExportService