20 lines
465 B
C#
20 lines
465 B
C#
namespace Persistence.IntegrationTests
|
|
{
|
|
/// <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();
|
|
}
|
|
}
|
|
}
|