Decouple RateProviderFactory with RateFetcher

This commit is contained in:
nicolas.dorier
2018-08-22 16:53:40 +09:00
parent 4f5a8f7953
commit 87d384dba5
12 changed files with 251 additions and 154 deletions

View File

@@ -15,12 +15,12 @@ namespace BTCPayServer.Controllers
{
public class RateController : Controller
{
BTCPayRateProviderFactory _RateProviderFactory;
RateFetcher _RateProviderFactory;
BTCPayNetworkProvider _NetworkProvider;
CurrencyNameTable _CurrencyNameTable;
StoreRepository _StoreRepo;
public RateController(
BTCPayRateProviderFactory rateProviderFactory,
RateFetcher rateProviderFactory,
BTCPayNetworkProvider networkProvider,
StoreRepository storeRepo,
CurrencyNameTable currencyNameTable)