Move `TestBlockProvider` to the test file as it is not used anywhere else.
MODIFY
WalletWasabi.Tests/UnitTests/SmartBlockProviderTests.cs
WalletWasabi.Tests/UnitTests/SmartBlockProviderTests.cs
@@ -43,3 +43,18 @@ public class SmartBlockProviderTests
}
*/
}
+
+file class TestBlockProvider : IBlockProvider
+{
+ public TestBlockProvider(Dictionary<uint256, Block> blocks)
+ {
+ Blocks = blocks;
+ }
+
+ private Dictionary<uint256, Block> Blocks { get; }
+
+ public Task<Block?> TryGetBlockAsync(uint256 hash, CancellationToken cancel)
+ {
+ return Task.FromResult<Block?>(Blocks[hash]);
+ }
+}

DELETE
WalletWasabi.Tests/UnitTests/TestBlockProvider.cs
-using NBitcoin;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-using WalletWasabi.Wallets;
-
-namespace WalletWasabi.Tests.UnitTests;
-
-public class TestBlockProvider : IBlockProvider
-{
- public TestBlockProvider(Dictionary<uint256, Block> blocks)
- {
- Blocks = blocks;
- }
-
- private Dictionary<uint256, Block> Blocks { get; }
-
- public Task<Block?> TryGetBlockAsync(uint256 hash, CancellationToken cancel)
- {
- return Task.FromResult<Block?>(Blocks[hash]);
- }
-}

Move `TestBlockProvider` to the test file as it is not used anywhere else.