mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-04-12 16:13:12 +00:00
Updated WebSocket message routing improving performance for scenarios with multiple different subscriptions and topics Added AddCommaSeparated helper for Enum value arrays to ParameterCollection Improved EnumConverter performance and removed string allocation for happy path Fixed CreateParamString extension method for ArrayParametersSerialization.Json Fixed Shared GetOrderBookOptions and GetRecentTradeOptions base validations not being called
28 lines
864 B
C#
28 lines
864 B
C#
using CryptoExchange.Net.Objects.Options;
|
|
|
|
namespace CryptoExchange.Net.UnitTests.Implementations
|
|
{
|
|
internal class TestRestOptions : RestExchangeOptions<TestEnvironment, TestCredentials>
|
|
{
|
|
internal static TestRestOptions Default { get; set; } = new TestRestOptions()
|
|
{
|
|
Environment = TestEnvironment.Live,
|
|
AutoTimestamp = true
|
|
};
|
|
|
|
public TestRestOptions()
|
|
{
|
|
Default?.Set(this);
|
|
}
|
|
|
|
public RestApiOptions ExchangeOptions { get; private set; } = new RestApiOptions();
|
|
|
|
internal TestRestOptions Set(TestRestOptions targetOptions)
|
|
{
|
|
targetOptions = base.Set<TestRestOptions>(targetOptions);
|
|
targetOptions.ExchangeOptions = ExchangeOptions.Set(targetOptions.ExchangeOptions);
|
|
return targetOptions;
|
|
}
|
|
}
|
|
}
|