mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-09-03 06:01:40 +00:00
Updated test methods
This commit is contained in:
parent
876b895645
commit
455b332757
@ -78,10 +78,6 @@ namespace CryptoExchange.Net.UnitTests
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void AuthenticateRequest(RestApiClient apiClient, Uri uri, HttpMethod method, ref IDictionary<string, object> uriParams, ref IDictionary<string, object> bodyParams, ref Dictionary<string, string> headers, bool auth, ArrayParametersSerialization arraySerialization, HttpMethodParameterPosition parameterPosition, RequestBodyFormat bodyFormat)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void ProcessRequest(RestApiClient apiClient, RestRequestConfiguration requestConfig)
|
public override void ProcessRequest(RestApiClient apiClient, RestRequestConfiguration requestConfig)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -131,17 +131,21 @@ namespace CryptoExchange.Net.Testing
|
|||||||
var headers = new Dictionary<string, string>();
|
var headers = new Dictionary<string, string>();
|
||||||
|
|
||||||
authProvider.TimeProvider = new TestAuthTimeProvider(time ?? new DateTime(2024, 01, 01, 0, 0, 0, DateTimeKind.Utc));
|
authProvider.TimeProvider = new TestAuthTimeProvider(time ?? new DateTime(2024, 01, 01, 0, 0, 0, DateTimeKind.Utc));
|
||||||
authProvider.AuthenticateRequest(
|
authProvider.ProcessRequest(
|
||||||
client,
|
client,
|
||||||
new Uri(host.AppendPath(path)),
|
new RestRequestConfiguration(
|
||||||
method,
|
new RequestDefinition(path, method)
|
||||||
ref uriParams,
|
{
|
||||||
ref bodyParams,
|
Authenticated = true
|
||||||
ref headers,
|
},
|
||||||
true,
|
host,
|
||||||
client.ArraySerialization,
|
uriParams ?? new Dictionary<string, object>(),
|
||||||
client.ParameterPositions[method],
|
bodyParams ?? new Dictionary<string, object>(),
|
||||||
client.RequestBodyFormat
|
headers,
|
||||||
|
client.ArraySerialization,
|
||||||
|
client.ParameterPositions[method],
|
||||||
|
client.RequestBodyFormat
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
var signature = getSignature(uriParams, bodyParams, headers);
|
var signature = getSignature(uriParams, bodyParams, headers);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user