1
0
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:
Jan Korf
2018-11-22 12:45:36 +01:00
parent c558f25b6c
commit 5c63941f32
13 changed files with 618 additions and 240 deletions
@@ -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))
{
}