Fix NRE in UTs
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/ConfigTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/ConfigTests.cs
@@ -132,6 +132,8 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend
rpcMock.SetupGet(rpc => rpc.Network).Returns(Network.Main);
rpcMock.Setup(rpc => rpc.EstimateSmartFeeAsync(It.IsAny<int>(), It.IsAny<EstimateSmartFeeMode>()))
.ReturnsAsync(new EstimateSmartFeeResponse { FeeRate = new FeeRate(10m) });
+ rpcMock.Setup(rpc => rpc.GetMempoolInfoAsync())
+ .ReturnsAsync(new MemPoolInfo { MemPoolMinFee = 0.00001000 });
return rpcMock.Object;
}
}

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/CoordinatorTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/CoordinatorTests.cs
@@ -72,9 +72,11 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend
private static IRPCClient NewMockRpcClient()
{
var mockRpcClient = new Mock<IRPCClient>();
- mockRpcClient.Setup(c => c.Network).Returns(Network.Main);
- mockRpcClient.Setup(c => c.EstimateSmartFeeAsync(It.IsAny<int>(), It.IsAny<EstimateSmartFeeMode>()))
+ mockRpcClient.Setup(rpc => rpc.Network).Returns(Network.Main);
+ mockRpcClient.Setup(rpc => rpc.EstimateSmartFeeAsync(It.IsAny<int>(), It.IsAny<EstimateSmartFeeMode>()))
.ReturnsAsync(new EstimateSmartFeeResponse { Blocks = 5, FeeRate = new FeeRate(100m) });
+ mockRpcClient.Setup(rpc => rpc.GetMempoolInfoAsync())
+ .ReturnsAsync(new MemPoolInfo { MemPoolMinFee = 0.00001000 });
return mockRpcClient.Object;
}
}

Fix NRE in UTs