mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
30 lines
754 B
C#
30 lines
754 B
C#
using CryptoExchange.Net.Interfaces;
|
|
using CryptoExchange.Net.Objects;
|
|
using System;
|
|
using System.Net.Http;
|
|
|
|
namespace CryptoExchange.Net.Testing.Implementations
|
|
{
|
|
internal class TestRequestFactory : IRequestFactory
|
|
{
|
|
private readonly TestRequest _request;
|
|
|
|
public TestRequestFactory(TestRequest request)
|
|
{
|
|
_request = request;
|
|
}
|
|
|
|
public void Configure(ApiProxy? proxy, TimeSpan requestTimeout, HttpClient? httpClient = null)
|
|
{
|
|
}
|
|
|
|
public IRequest Create(HttpMethod method, Uri uri, int requestId)
|
|
{
|
|
_request.Method = method;
|
|
_request.Uri = uri;
|
|
_request.RequestId = requestId;
|
|
return _request;
|
|
}
|
|
}
|
|
}
|