From 455b332757af98f8ccfefd6d981f10822cf611a3 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Tue, 19 Aug 2025 10:05:14 +0200 Subject: [PATCH] Updated test methods --- .../TestImplementations/TestBaseClient.cs | 4 --- CryptoExchange.Net/Testing/TestHelpers.cs | 26 +++++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CryptoExchange.Net.UnitTests/TestImplementations/TestBaseClient.cs b/CryptoExchange.Net.UnitTests/TestImplementations/TestBaseClient.cs index 1491072..176cff4 100644 --- a/CryptoExchange.Net.UnitTests/TestImplementations/TestBaseClient.cs +++ b/CryptoExchange.Net.UnitTests/TestImplementations/TestBaseClient.cs @@ -78,10 +78,6 @@ namespace CryptoExchange.Net.UnitTests { } - public override void AuthenticateRequest(RestApiClient apiClient, Uri uri, HttpMethod method, ref IDictionary uriParams, ref IDictionary bodyParams, ref Dictionary headers, bool auth, ArrayParametersSerialization arraySerialization, HttpMethodParameterPosition parameterPosition, RequestBodyFormat bodyFormat) - { - } - public override void ProcessRequest(RestApiClient apiClient, RestRequestConfiguration requestConfig) { } diff --git a/CryptoExchange.Net/Testing/TestHelpers.cs b/CryptoExchange.Net/Testing/TestHelpers.cs index 3764683..c0eca65 100644 --- a/CryptoExchange.Net/Testing/TestHelpers.cs +++ b/CryptoExchange.Net/Testing/TestHelpers.cs @@ -131,17 +131,21 @@ namespace CryptoExchange.Net.Testing var headers = new Dictionary(); 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(), + bodyParams ?? new Dictionary(), + headers, + client.ArraySerialization, + client.ParameterPositions[method], + client.RequestBodyFormat + ) ); var signature = getSignature(uriParams, bodyParams, headers);