From a1b83bcab210138a0ff8496e97eb5fee70b520d0 Mon Sep 17 00:00:00 2001 From: "gorbenko.pavel" Date: Thu, 23 Jul 2026 17:39:08 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=BC=D0=B0=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApplicationServices/RequestTypeServiceTests.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/RequestTypeServiceTests.cs b/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/RequestTypeServiceTests.cs index 001b54e..83f8d38 100644 --- a/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/RequestTypeServiceTests.cs +++ b/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/RequestTypeServiceTests.cs @@ -5,14 +5,9 @@ using Tnsu.ApprovalRoute.IntegrationTests.Infrastructure; namespace Tnsu.ApprovalRoute.IntegrationTests.ApplicationServices; -public sealed class RequestTypeServiceTests : IClassFixture +public sealed class RequestTypeServiceTests(PostgresDatabaseFixture fixture) : IClassFixture { - private readonly RequestTypeService _service; - - public RequestTypeServiceTests(PostgresDatabaseFixture fixture) - { - _service = TestServiceProviderFactory.Build(fixture.ConnectionString).GetRequiredService(); - } + private readonly RequestTypeService _service = TestServiceProviderFactory.Build(fixture.ConnectionString).GetRequiredService(); [Fact(DisplayName = "Создание типа заявки и получение его по Id возвращает сохранённые данные")] public async Task CreateAsync_Then_GetAsync_ReturnsCreatedEntity()