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()