public CoinsClientTests(CoinGeckoApiFixture apiFixture, ITestOutputHelper output) : base(apiFixture, output) { _coinsClient = ServiceProvider.GetRequiredService <ICoinsClient>(); _simpleClient = ServiceProvider.GetRequiredService <ISimpleClient>(); _output = output; }
public CoinGeckoClientTests(ITestOutputHelper output) { _simpleClient = Substitute.For <ISimpleClient>(); _coinsClient = Substitute.For <ICoinsClient>(); _memoryCache = Substitute.For <IMemoryCache>(); _mockCreator = new MockCreator(output); _coinGeckoClient = new CoinGeckoClient(_memoryCache, _coinsClient, _simpleClient); }
public CoingeckoImporter( ILoggerFactory loggerFactory, ICoinDataTableStorage coinDataTableStorage, IRatingDataTableStorage ratingDataTableStorage, ICoinsClient coinGeckoClient, IExchangesClient exchangesGeckoClient, IMapper mapper) { this.log = loggerFactory.CreateLogger(Constants.FUNCTION_LOG_KEY); this.coinDataTableStorage = coinDataTableStorage; this.ratingDataTableStorage = ratingDataTableStorage; this.coinGeckoClient = coinGeckoClient; this.exchangesGeckoClient = exchangesGeckoClient; this.mapper = mapper; }