mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
Fixed tests
This commit is contained in:
parent
edfaa650bf
commit
7ccf643a34
@ -144,7 +144,7 @@ namespace CryptoExchange.Net.UnitTests
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
client.SetParameterPosition(new HttpMethod(method), pos);
|
client.Api1.SetParameterPosition(new HttpMethod(method), pos);
|
||||||
|
|
||||||
client.SetResponse("{}", out var request);
|
client.SetResponse("{}", out var request);
|
||||||
|
|
||||||
|
@ -31,11 +31,6 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations
|
|||||||
RequestFactory = new Mock<IRequestFactory>().Object;
|
RequestFactory = new Mock<IRequestFactory>().Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetParameterPosition(HttpMethod method, HttpMethodParameterPosition position)
|
|
||||||
{
|
|
||||||
ParameterPositions[method] = position;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetResponse(string responseData, out IRequest requestObj)
|
public void SetResponse(string responseData, out IRequest requestObj)
|
||||||
{
|
{
|
||||||
var expectedBytes = Encoding.UTF8.GetBytes(responseData);
|
var expectedBytes = Encoding.UTF8.GetBytes(responseData);
|
||||||
@ -120,7 +115,11 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations
|
|||||||
{
|
{
|
||||||
public TestRestApi1Client(TestClientOptions options): base(options, options.Api1Options)
|
public TestRestApi1Client(TestClientOptions options): base(options, options.Api1Options)
|
||||||
{
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetParameterPosition(HttpMethod method, HttpMethodParameterPosition position)
|
||||||
|
{
|
||||||
|
ParameterPositions[method] = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override TimeSpan GetTimeOffset()
|
public override TimeSpan GetTimeOffset()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user