persistence/Persistence.IntegrationTests/TestHttpClientFactory.cs

17 lines
343 B
C#
Raw Normal View History

2024-11-21 14:50:36 +05:00
namespace Persistence.IntegrationTests
{
public class TestHttpClientFactory : IHttpClientFactory
{
private readonly WebAppFactoryFixture factory;
public TestHttpClientFactory(WebAppFactoryFixture factory)
{
this.factory = factory;
}
public HttpClient CreateClient(string name)
{
return factory.CreateClient();
}
}
}