Skip to content

Commit a9e275c

Browse files
author
gui.h
committed
fix: test error
1 parent 69097db commit a9e275c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/OpenTask.WebApi.Tests/IntegrationTests/ClientTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ namespace OpenTask.WebApi.Tests.IntegrationTests;
1313
public class ClientTests
1414
: IClassFixture<CustomWebApplicationFactory<Program>>
1515
{
16-
private readonly WebApplicationFactory<Program> _factory;
16+
private readonly CustomWebApplicationFactory<Program> _factory;
1717
private readonly HttpClient client;
1818

19-
public ClientTests(WebApplicationFactory<Program> factory)
19+
public ClientTests(CustomWebApplicationFactory<Program> factory)
2020
{
2121
_factory = factory;
2222
client = _factory.CreateClient();
2323
}
2424

2525
[Theory]
26-
[InlineData("/api/Client/ListClients")]
26+
[InlineData("/api/Client/ListClients")]
2727
public async Task Get_Clients(string url)
2828
{
2929
HttpResponseMessage response = await client.GetAsync(url);

src/OpenTask.WebApi/Controllers/UserController.cs

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public UserController(IMediator mediator) : base(mediator)
2222
[HttpPost]
2323
public async Task<BaseResponse<LoginResponse>> Login(LoginCommand request)
2424
{
25+
2526
return await RequestAsync<LoginCommand, LoginResponse>(request);
2627
}
2728

0 commit comments

Comments
 (0)