mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-04-07 02:01:12 +00:00
23 lines
751 B
C#
23 lines
751 B
C#
using CryptoExchange.Net.Authentication;
|
|
using CryptoExchange.Net.Clients;
|
|
using CryptoExchange.Net.Objects;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.UnitTests.Implementations
|
|
{
|
|
internal class TestAuthenticationProvider : AuthenticationProvider<TestCredentials, TestCredentials>
|
|
{
|
|
public TestAuthenticationProvider(TestCredentials credentials) : base(credentials, credentials)
|
|
{
|
|
}
|
|
|
|
public override void ProcessRequest(RestApiClient apiClient, RestRequestConfiguration requestConfig)
|
|
{
|
|
requestConfig.Headers ??= new Dictionary<string, string>();
|
|
requestConfig.Headers["Authorization"] = Credential.Key;
|
|
}
|
|
}
|
|
}
|