19 lines
474 B
C#
19 lines
474 B
C#
|
namespace Persistence.Benchmark;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Фабрика HTTP клиентов для интеграционных тестов
|
|||
|
/// </summary>
|
|||
|
public class TestHttpClientFactory : IHttpClientFactory
|
|||
|
{
|
|||
|
private readonly WebAppFactoryFixture factory;
|
|||
|
|
|||
|
public TestHttpClientFactory(WebAppFactoryFixture factory)
|
|||
|
{
|
|||
|
this.factory = factory;
|
|||
|
}
|
|||
|
public HttpClient CreateClient(string name)
|
|||
|
{
|
|||
|
return factory.CreateClient();
|
|||
|
}
|
|||
|
}
|