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