1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +00:00

Fixed tests

This commit is contained in:
Jan Korf 2022-04-14 15:09:38 +02:00
parent edfaa650bf
commit 7ccf643a34
2 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -31,11 +31,6 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations
RequestFactory = new Mock<IRequestFactory>().Object;
}
public void SetParameterPosition(HttpMethod method, HttpMethodParameterPosition position)
{
ParameterPositions[method] = position;
}
public void SetResponse(string responseData, out IRequest requestObj)
{
var expectedBytes = Encoding.UTF8.GetBytes(responseData);
@ -120,7 +115,11 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations
{
public TestRestApi1Client(TestClientOptions options): base(options, options.Api1Options)
{
}
public void SetParameterPosition(HttpMethod method, HttpMethodParameterPosition position)
{
ParameterPositions[method] = position;
}
public override TimeSpan GetTimeOffset()