mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-12 00:43:03 +00:00
Initial v2 changes
This commit is contained in:
@@ -174,7 +174,7 @@ namespace CryptoExchange.Net.UnitTests
|
||||
TestImplementation client;
|
||||
if (withOptions)
|
||||
{
|
||||
var options = new ExchangeOptions()
|
||||
var options = new ClientOptions()
|
||||
{
|
||||
ApiCredentials = new ApiCredentials("Test", "Test2"),
|
||||
LogVerbosity = verbosity
|
||||
@@ -219,7 +219,7 @@ namespace CryptoExchange.Net.UnitTests
|
||||
factory.Setup(c => c.Create(It.IsAny<string>()))
|
||||
.Returns(request.Object);
|
||||
|
||||
TestImplementation client = credentials ? new TestImplementation(new ExchangeOptions() { ApiCredentials = new ApiCredentials("Test", "Test2") }) : new TestImplementation();
|
||||
TestImplementation client = credentials ? new TestImplementation(new ClientOptions() { ApiCredentials = new ApiCredentials("Test", "Test2") }) : new TestImplementation();
|
||||
client.RequestFactory = factory.Object;
|
||||
return client;
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ using CryptoExchange.Net.Objects;
|
||||
|
||||
namespace CryptoExchange.Net.UnitTests
|
||||
{
|
||||
public class TestImplementation: ExchangeClient
|
||||
public class TestImplementation: RestClient
|
||||
{
|
||||
public TestImplementation(): base(new ExchangeOptions(), null) { }
|
||||
public TestImplementation(): base(new ClientOptions(), null) { }
|
||||
|
||||
public TestImplementation(ExchangeOptions exchangeOptions) : base(exchangeOptions, exchangeOptions.ApiCredentials == null ? null : new TestAuthProvider(exchangeOptions.ApiCredentials))
|
||||
public TestImplementation(ClientOptions exchangeOptions) : base(exchangeOptions, exchangeOptions.ApiCredentials == null ? null : new TestAuthProvider(exchangeOptions.ApiCredentials))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user