public CoinsClientTests(CoinGeckoApiFixture apiFixture, ITestOutputHelper output)
     : base(apiFixture, output)
 {
     _coinsClient  = ServiceProvider.GetRequiredService <ICoinsClient>();
     _simpleClient = ServiceProvider.GetRequiredService <ISimpleClient>();
     _output       = output;
 }
Пример #2
0
    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);
    }
Пример #3
0
 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;
 }