public CachedCoinmarketCapService(ICryptoCurrencyExchangeService cryptoCurrencyExchangeService, CoinmarketCapConfig coinmarketCapConfig) { _cryptoCurrencyExchangeService = cryptoCurrencyExchangeService; _coinmarketCapConfig = coinmarketCapConfig; _cache = new ConcurrentDictionary <string, CachedCryptoCurrency>(); }
public GetAllCryptoCurrenciesHandlerTest() { _cryptoCurrencyRepository = A.Fake <ICryptoCurrencyRepository>(); _cryptoCurrencyExchangeService = A.Fake <ICryptoCurrencyExchangeService>(); _mapper = A.Fake <IMapper>(); _testee = new GetAllCryptoCurrenciesHandler(_cryptoCurrencyRepository, _cryptoCurrencyExchangeService, _mapper); }
public GetAllCryptoCurrenciesHandler(ICryptoCurrencyRepository cryptoCurrencyRepository, ICryptoCurrencyExchangeService cryptoCurrencyExchangeService, IMapper mapper) { _cryptoCurrencyRepository = cryptoCurrencyRepository; _cryptoCurrencyExchangeService = cryptoCurrencyExchangeService; _mapper = mapper; }