mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-08-31 12:42:00 +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)
|
||||
{
|
||||
}
|
||||
|
@ -131,17 +131,21 @@ namespace CryptoExchange.Net.Testing
|
||||
var headers = new Dictionary<string, string>();
|
||||
|
||||
authProvider.TimeProvider = new TestAuthTimeProvider(time ?? new DateTime(2024, 01, 01, 0, 0, 0, DateTimeKind.Utc));
|
||||
authProvider.AuthenticateRequest(
|
||||
client,
|
||||
new Uri(host.AppendPath(path)),
|
||||
method,
|
||||
ref uriParams,
|
||||
ref bodyParams,
|
||||
ref headers,
|
||||
true,
|
||||
client.ArraySerialization,
|
||||
client.ParameterPositions[method],
|
||||
client.RequestBodyFormat
|
||||
authProvider.ProcessRequest(
|
||||
client,
|
||||
new RestRequestConfiguration(
|
||||
new RequestDefinition(path, method)
|
||||
{
|
||||
Authenticated = true
|
||||
},
|
||||
host,
|
||||
uriParams ?? new Dictionary<string, object>(),
|
||||
bodyParams ?? new Dictionary<string, object>(),
|
||||
headers,
|
||||
client.ArraySerialization,
|
||||
client.ParameterPositions[method],
|
||||
client.RequestBodyFormat
|
||||
)
|
||||
);
|
||||
|
||||
var signature = getSignature(uriParams, bodyParams, headers);
|
||||
|
Loading…
x
Reference in New Issue
Block a user