Move class to a standalone file.
MODIFY
WalletWasabi.Tests/UnitTests/SmartBlockProviderTests.cs
WalletWasabi.Tests/UnitTests/SmartBlockProviderTests.cs
@@ -40,20 +40,5 @@ namespace WalletWasabi.Tests.UnitTests
Assert.NotEqual(blocks[0], result[1]);
}
-
- private class TestBlockProvider : IBlockProvider
- {
- private Dictionary<uint256, Block> Blocks { get; }
-
- public TestBlockProvider(Dictionary<uint256, Block> blocks)
- {
- Blocks = blocks;
- }
-
- public Task<Block> GetBlockAsync(uint256 hash, CancellationToken cancel)
- {
- return Task.FromResult(Blocks[hash]);
- }
- }
}
}
\ No newline at end of file

ADD
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
+ {
+ private Dictionary<uint256, Block> Blocks { get; }
+
+ public TestBlockProvider(Dictionary<uint256, Block> blocks)
+ {
+ Blocks = blocks;
+ }
+
+ public Task<Block> GetBlockAsync(uint256 hash, CancellationToken cancel)
+ {
+ return Task.FromResult(Blocks[hash]);
+ }
+ }
+}
\ No newline at end of file

Move class to a standalone file.