Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed Jul 14, 2023
1 parent 4444f32 commit ae31ddf
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace CleanAspCore.Api.Tests.Features.Departments;

public class DepartmentControllerTests
{
private readonly TestWebApplicationFactory _api;
private readonly TestWebApi _api;

public DepartmentControllerTests(TestWebApplicationFactory api)
public DepartmentControllerTests(TestWebApi api)
{
_api = api;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace CleanAspCore.Api.Tests.Features.Employees;

public class EmployeeControllerTests
{
private readonly TestWebApplicationFactory _api;
private readonly TestWebApi _api;

public EmployeeControllerTests(TestWebApplicationFactory api)
public EmployeeControllerTests(TestWebApi api)
{
_api = api;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace CleanAspCore.Api.Tests.Features.Import;

public class ImportControllerTests
{
private readonly TestWebApplicationFactory _api;
private readonly TestWebApi _api;

public ImportControllerTests(TestWebApplicationFactory api)
public ImportControllerTests(TestWebApi api)
{
_api = api;
}
Expand Down
4 changes: 2 additions & 2 deletions CleanAspCore.Api.Tests/Features/Jobs/JobControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace CleanAspCore.Api.Tests.Features.Jobs;

public class JobControllerTests
{
private readonly TestWebApplicationFactory _api;
private readonly TestWebApi _api;

public JobControllerTests(TestWebApplicationFactory api)
public JobControllerTests(TestWebApi api)
{
_api = api;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

namespace CleanAspCore.Api.Tests.Helpers;

public class TestWebApplicationFactory : WebApplicationFactory<Program>
public class TestWebApi : WebApplicationFactory<Program>
{
private readonly ILoggerProvider _loggerProvider;
private readonly RentedDatabase _integrationDatabase;
private Action<IServiceCollection>? _configure;

public TestWebApplicationFactory(DatabasePool databasePool, ILoggerProvider loggerProvider)
public TestWebApi(DatabasePool databasePool, ILoggerProvider loggerProvider)
{
_loggerProvider = loggerProvider;
_integrationDatabase = databasePool.Get();
Expand Down
2 changes: 1 addition & 1 deletion CleanAspCore.Api.Tests/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddTransient<TestWebApplicationFactory>();
services.AddTransient<TestWebApi>();
services.AddLogging(x => x.AddXunitOutput());

var container = new PostgreSqlBuilder().Build();
Expand Down

0 comments on commit ae31ddf

Please sign in to comment.