diff --git a/CryptoExchange.Net.UnitTests/CallResultTests.cs b/CryptoExchange.Net.UnitTests/CallResultTests.cs index 8cf0ab6..80c6532 100644 --- a/CryptoExchange.Net.UnitTests/CallResultTests.cs +++ b/CryptoExchange.Net.UnitTests/CallResultTests.cs @@ -5,6 +5,7 @@ using NUnit.Framework.Legacy; using System; using System.Collections.Generic; using System.Linq; +using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; @@ -113,6 +114,7 @@ namespace CryptoExchange.Net.UnitTests { var result = new WebCallResult( System.Net.HttpStatusCode.OK, + HttpVersion.Version11, new KeyValuePair[0], TimeSpan.FromSeconds(1), null, @@ -143,6 +145,7 @@ namespace CryptoExchange.Net.UnitTests { var result = new WebCallResult( System.Net.HttpStatusCode.OK, + HttpVersion.Version11, new KeyValuePair[0], TimeSpan.FromSeconds(1), null, diff --git a/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs b/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs index d52d8c3..73d8d5e 100644 --- a/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs +++ b/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs @@ -61,7 +61,7 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations var factory = Mock.Get(Api1.RequestFactory); factory.Setup(c => c.Create(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())) - .Callback((method, uri, id) => + .Callback((version, method, uri, id) => { request.Setup(a => a.Uri).Returns(uri); request.Setup(a => a.Method).Returns(method); @@ -70,7 +70,7 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations factory = Mock.Get(Api2.RequestFactory); factory.Setup(c => c.Create(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())) - .Callback((method, uri, id) => + .Callback((version, method, uri, id) => { request.Setup(a => a.Uri).Returns(uri); request.Setup(a => a.Method).Returns(method); @@ -119,12 +119,12 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations var factory = Mock.Get(Api1.RequestFactory); factory.Setup(c => c.Create(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())) - .Callback((method, uri, id) => request.Setup(a => a.Uri).Returns(uri)) + .Callback((version, method, uri, id) => request.Setup(a => a.Uri).Returns(uri)) .Returns(request.Object); factory = Mock.Get(Api2.RequestFactory); factory.Setup(c => c.Create(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())) - .Callback((method, uri, id) => request.Setup(a => a.Uri).Returns(uri)) + .Callback((version, method, uri, id) => request.Setup(a => a.Uri).Returns(uri)) .Returns(request.Object); } }