/// <summary> /// Constructor /// </summary> /// <param name="cMCCoinRepository">Repository Interface</param> public CoinMarketCapBuilder(ICMCCoinRepository cMCCoinRepository) { _coinRepo = cMCCoinRepository; _cmcRepo = new CoinMarketCapRepository(); this._helper = new ObjectHelper(); this._dtHelper = new DateTimeHelper(); this.lastRun = null; LoadCoinsFromDB(); }
public CoinMarketCapRepositoryTests() { var key = "4d2e49c8-65e0-4f61-ab21-1975ad798d49"; repo = new CoinMarketCapRepository(key, true); }
public CoinMarketCapService(ICoinMarketCapRepository coinMarketCapRepository) { _coinMarketCapRepository = coinMarketCapRepository; _coinMarketCapClient = new CoinMarketCapClient(new HttpClientHandler(), ApiEnvironment.Pro, "c572865c-d03a-4be2-8cba-84c963e48869"); }
/// <summary> /// Constructor /// </summary> /// <param name="cmcRepo">CMC repository interface</param> public CMCBuilder(ICoinMarketCapRepository cmcRepo) { cmcRepository = cmcRepo; }
/// <summary> /// Constructor /// </summary> /// <param name="key">Api Key (get one here: https://pro.coinmarketcap.com/)</param> /// <param name="sandbox">Use sandbox?</param> public CMCClient(string key, bool sandbox) { _repo = new CoinMarketCapRepository(key, sandbox); }
/// <summary> /// Constructor /// </summary> /// <param name="key">Api Key (get one here: https://pro.coinmarketcap.com/)</param> public CMCClient(string key) { _repo = new CoinMarketCapRepository(key); }
public CryptocurrencyService(IRepository <Cryptocurrency> cryptocurrencyRepository, ICoinMarketCapRepository coinMarketCapRepository, ICryptocurrencyHistoryService cryptocurrencyHistoryService) { _cryptocurrencyRepository = cryptocurrencyRepository; _coinMarketCapRepository = coinMarketCapRepository; _cryptocurrencyHistoryService = cryptocurrencyHistoryService; }