Use HttpClientFactory for coinaverage

This commit is contained in:
nicolas.dorier
2018-08-21 14:33:13 +09:00
parent 9c30476fc8
commit 8728356698
4 changed files with 25 additions and 6 deletions

View File

@@ -1711,7 +1711,7 @@ namespace BTCPayServer.Tests
private static BTCPayRateProviderFactory CreateBTCPayRateFactory(BTCPayNetworkProvider provider)
{
return new BTCPayRateProviderFactory(new MemoryCacheOptions() { ExpirationScanFrequency = TimeSpan.FromSeconds(1.0) }, provider, new CoinAverageSettings());
return new BTCPayRateProviderFactory(new MemoryCacheOptions() { ExpirationScanFrequency = TimeSpan.FromSeconds(1.0) }, null, provider, new CoinAverageSettings());
}
[Fact]