From a329846df70261236092ac449c610d75be186eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D1=8F=20=D0=91=D0=B8=D0=B7=D1=8E=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0?= Date: Thu, 12 Dec 2024 13:27:12 +0500 Subject: [PATCH] =?UTF-8?q?DataSaubDto=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D1=81=D0=B5=D0=BD=D0=B0=20=D0=B8=D0=B7=20=D1=81=D0=BB?= =?UTF-8?q?=D0=BE=D1=8F=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D1=8F=20=D0=B2=20=D1=81=D0=BB=D0=BE=D0=B9=20persis?= =?UTF-8?q?tence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Persistence.API/Controllers/DataSaubController.cs | 2 +- Persistence.API/Persistence.API.http | 6 ------ .../Controllers/DataSaubControllerTest.cs | 2 +- Persistence.Repository/DependencyInjection.cs | 1 - .../Data => Persistence/Models}/DataSaubDto.cs | 4 +--- 5 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 Persistence.API/Persistence.API.http rename {Persistence.Repository/Data => Persistence/Models}/DataSaubDto.cs (92%) diff --git a/Persistence.API/Controllers/DataSaubController.cs b/Persistence.API/Controllers/DataSaubController.cs index 202e527..715b1ef 100644 --- a/Persistence.API/Controllers/DataSaubController.cs +++ b/Persistence.API/Controllers/DataSaubController.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using Persistence.Models; using Persistence.Repositories; -using Persistence.Repository.Data; namespace Persistence.API.Controllers; diff --git a/Persistence.API/Persistence.API.http b/Persistence.API/Persistence.API.http deleted file mode 100644 index 0eba8fa..0000000 --- a/Persistence.API/Persistence.API.http +++ /dev/null @@ -1,6 +0,0 @@ -@Persistence.API_HostAddress = http://localhost:5032 - -GET {{Persistence.API_HostAddress}}/weatherforecast/ -Accept: application/json - -### diff --git a/Persistence.IntegrationTests/Controllers/DataSaubControllerTest.cs b/Persistence.IntegrationTests/Controllers/DataSaubControllerTest.cs index 7edd0f3..49365a8 100644 --- a/Persistence.IntegrationTests/Controllers/DataSaubControllerTest.cs +++ b/Persistence.IntegrationTests/Controllers/DataSaubControllerTest.cs @@ -1,5 +1,5 @@ using Persistence.Database.Model; -using Persistence.Repository.Data; +using Persistence.Models; using Xunit; namespace Persistence.IntegrationTests.Controllers; diff --git a/Persistence.Repository/DependencyInjection.cs b/Persistence.Repository/DependencyInjection.cs index c433615..f7cddec 100644 --- a/Persistence.Repository/DependencyInjection.cs +++ b/Persistence.Repository/DependencyInjection.cs @@ -3,7 +3,6 @@ using Microsoft.Extensions.DependencyInjection; using Persistence.Database.Model; using Persistence.Models; using Persistence.Repositories; -using Persistence.Repository.Data; using Persistence.Repository.Repositories; namespace Persistence.Repository; diff --git a/Persistence.Repository/Data/DataSaubDto.cs b/Persistence/Models/DataSaubDto.cs similarity index 92% rename from Persistence.Repository/Data/DataSaubDto.cs rename to Persistence/Models/DataSaubDto.cs index 3cd0344..cd547da 100644 --- a/Persistence.Repository/Data/DataSaubDto.cs +++ b/Persistence/Models/DataSaubDto.cs @@ -1,6 +1,4 @@ -using Persistence.Models; - -namespace Persistence.Repository.Data; +namespace Persistence.Models; public class DataSaubDto : ITimeSeriesAbstractDto { public DateTimeOffset Date { get; set; } = DateTimeOffset.UtcNow;