1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-20 04:42:57 +00:00

Test implementation fixes

This commit is contained in:
JKorf
2024-05-02 22:29:32 +02:00
parent 71d54e2f9a
commit d64e200f2f
2 changed files with 5 additions and 2 deletions
@@ -10,6 +10,7 @@ namespace CryptoExchange.Net.Testing.Implementations
{
internal class TestRequest : IRequest
{
private readonly Dictionary<string, IEnumerable<string>> _headers = new Dictionary<string, IEnumerable<string>>();
private readonly TestResponse _response;
public string Accept { set { } }
@@ -31,9 +32,10 @@ namespace CryptoExchange.Net.Testing.Implementations
public void AddHeader(string key, string value)
{
_headers.Add(key, new[] { value });
}
public Dictionary<string, IEnumerable<string>> GetHeaders() => new();
public Dictionary<string, IEnumerable<string>> GetHeaders() => _headers;
public Task<IResponse> GetResponseAsync(CancellationToken cancellationToken) => Task.FromResult<IResponse>(_response);