апи для работы с маршрутами согласования #2

Merged
admin merged 38 commits from initial-api into main 2026-07-27 13:14:32 +00:00
Showing only changes of commit a1b83bcab2 - Show all commits
@@ -5,14 +5,9 @@ using Tnsu.ApprovalRoute.IntegrationTests.Infrastructure;
namespace Tnsu.ApprovalRoute.IntegrationTests.ApplicationServices;
public sealed class RequestTypeServiceTests : IClassFixture<PostgresDatabaseFixture>
public sealed class RequestTypeServiceTests(PostgresDatabaseFixture fixture) : IClassFixture<PostgresDatabaseFixture>
{
private readonly RequestTypeService _service;
public RequestTypeServiceTests(PostgresDatabaseFixture fixture)
{
_service = TestServiceProviderFactory.Build(fixture.ConnectionString).GetRequiredService<RequestTypeService>();
}
private readonly RequestTypeService _service = TestServiceProviderFactory.Build(fixture.ConnectionString).GetRequiredService<RequestTypeService>();
[Fact(DisplayName = "Создание типа заявки и получение его по Id возвращает сохранённые данные")]
public async Task CreateAsync_Then_GetAsync_ReturnsCreatedEntity()