mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-21 14:56:13 +00:00
24 lines
542 B
C#
24 lines
542 B
C#
using CryptoExchange.Net.Interfaces;
|
|
|
|
namespace CryptoExchange.Net.Testing.Implementations
|
|
{
|
|
/// <summary>
|
|
/// Test implementation for nonce provider, returning a prespecified nonce
|
|
/// </summary>
|
|
public class TestNonceProvider : INonceProvider
|
|
{
|
|
private readonly long _nonce;
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
public TestNonceProvider(long nonce)
|
|
{
|
|
_nonce = nonce;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public long GetNonce() => _nonce;
|
|
}
|
|
}
|