1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-17 11:23:00 +00:00

Fixed tests

This commit is contained in:
Jkorf
2021-11-10 13:18:52 +01:00
parent f83127590a
commit 6c3462403f
10 changed files with 39 additions and 4079 deletions
@@ -8,7 +8,7 @@ namespace CryptoExchange.Net.UnitTests
{
public class TestBaseClient: BaseClient
{
public TestBaseClient(): base("Test", new RestClientOptions("http://testurl.url"), null)
public TestBaseClient(): base("Test", new RestClientOptions(), null)
{
}
@@ -23,7 +23,7 @@ namespace CryptoExchange.Net.UnitTests
public CallResult<T> Deserialize<T>(string data)
{
return Deserialize<T>(data, false);
return Deserialize<T>(data, null, null);
}
public string FillParameters(string path, params string[] values)
@@ -17,7 +17,7 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations
{
public class TestRestClient: RestClient
{
public TestRestClient() : base("Test", new RestClientOptions("http://testurl.url"), null)
public TestRestClient() : base("Test", new RestClientOptions(), null)
{
RequestFactory = new Mock<IRequestFactory>().Object;
}
@@ -11,7 +11,7 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations
{
public class TestSocketClient: SocketClient
{
public TestSocketClient() : this(new SocketClientOptions("http://testurl.url"))
public TestSocketClient() : this(new SocketClientOptions())
{
}
@@ -24,7 +24,7 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations
public TestSocket CreateSocket()
{
Mock.Get(SocketFactory).Setup(f => f.CreateWebsocket(It.IsAny<Log>(), It.IsAny<string>())).Returns(new TestSocket());
return (TestSocket)CreateSocket(BaseAddress);
return (TestSocket)CreateSocket(ClientOptions.BaseAddress);
}
public CallResult<bool> ConnectSocketSub(SocketConnection sub)