From 0403384beb7c2566f5df4937b5b6dde9e0557f7b Mon Sep 17 00:00:00 2001 From: Jkorf Date: Tue, 19 Nov 2024 11:50:55 +0100 Subject: [PATCH] Fixed warnings --- .../TestImplementations/TestRestClient.cs | 4 ++-- .../TestImplementations/TestSocketClient.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs b/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs index 9499613..8d1ef36 100644 --- a/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs +++ b/CryptoExchange.Net.UnitTests/TestImplementations/TestRestClient.cs @@ -25,12 +25,12 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations public TestRestApi1Client Api1 { get; } public TestRestApi2Client Api2 { get; } - public TestRestClient(Action? optionsDelegate = null) + public TestRestClient(Action optionsDelegate = null) : this(null, null, Options.Create(ApplyOptionsDelegate(optionsDelegate))) { } - public TestRestClient(HttpClient? httpClient, ILoggerFactory? loggerFactory, IOptions options) : base(loggerFactory, "Test") + public TestRestClient(HttpClient httpClient, ILoggerFactory loggerFactory, IOptions options) : base(loggerFactory, "Test") { Initialize(options.Value); diff --git a/CryptoExchange.Net.UnitTests/TestImplementations/TestSocketClient.cs b/CryptoExchange.Net.UnitTests/TestImplementations/TestSocketClient.cs index f31f22f..d74060e 100644 --- a/CryptoExchange.Net.UnitTests/TestImplementations/TestSocketClient.cs +++ b/CryptoExchange.Net.UnitTests/TestImplementations/TestSocketClient.cs @@ -27,12 +27,12 @@ namespace CryptoExchange.Net.UnitTests.TestImplementations /// Create a new instance of KucoinSocketClient /// /// Configure the options to use for this client - public TestSocketClient(Action? optionsDelegate = null) + public TestSocketClient(Action optionsDelegate = null) : this(Options.Create(ApplyOptionsDelegate(optionsDelegate)), null) { } - public TestSocketClient(IOptions options, ILoggerFactory? loggerFactory = null) : base(loggerFactory, "Test") + public TestSocketClient(IOptions options, ILoggerFactory loggerFactory = null) : base(loggerFactory, "Test") { Initialize(options.Value);