апи для работы с маршрутами согласования #2
+2
-7
@@ -5,14 +5,9 @@ using Tnsu.ApprovalRoute.IntegrationTests.Infrastructure;
|
|||||||
|
|
||||||
namespace Tnsu.ApprovalRoute.IntegrationTests.ApplicationServices;
|
namespace Tnsu.ApprovalRoute.IntegrationTests.ApplicationServices;
|
||||||
|
|
||||||
public sealed class RequestTypeServiceTests : IClassFixture<PostgresDatabaseFixture>
|
public sealed class RequestTypeServiceTests(PostgresDatabaseFixture fixture) : IClassFixture<PostgresDatabaseFixture>
|
||||||
{
|
{
|
||||||
private readonly RequestTypeService _service;
|
private readonly RequestTypeService _service = TestServiceProviderFactory.Build(fixture.ConnectionString).GetRequiredService<RequestTypeService>();
|
||||||
|
|
||||||
public RequestTypeServiceTests(PostgresDatabaseFixture fixture)
|
|
||||||
{
|
|
||||||
_service = TestServiceProviderFactory.Build(fixture.ConnectionString).GetRequiredService<RequestTypeService>();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Fact(DisplayName = "Создание типа заявки и получение его по Id возвращает сохранённые данные")]
|
[Fact(DisplayName = "Создание типа заявки и получение его по Id возвращает сохранённые данные")]
|
||||||
public async Task CreateAsync_Then_GetAsync_ReturnsCreatedEntity()
|
public async Task CreateAsync_Then_GetAsync_ReturnsCreatedEntity()
|
||||||
|
|||||||
Reference in New Issue
Block a user