コード例 #1
0
 public CachedCoinmarketCapService(ICryptoCurrencyExchangeService cryptoCurrencyExchangeService,
                                   CoinmarketCapConfig coinmarketCapConfig)
 {
     _cryptoCurrencyExchangeService = cryptoCurrencyExchangeService;
     _coinmarketCapConfig           = coinmarketCapConfig;
     _cache = new ConcurrentDictionary <string, CachedCryptoCurrency>();
 }
コード例 #2
0
        public GetAllCryptoCurrenciesHandlerTest()
        {
            _cryptoCurrencyRepository      = A.Fake <ICryptoCurrencyRepository>();
            _cryptoCurrencyExchangeService = A.Fake <ICryptoCurrencyExchangeService>();
            _mapper = A.Fake <IMapper>();

            _testee = new GetAllCryptoCurrenciesHandler(_cryptoCurrencyRepository, _cryptoCurrencyExchangeService, _mapper);
        }
コード例 #3
0
 public GetAllCryptoCurrenciesHandler(ICryptoCurrencyRepository cryptoCurrencyRepository,
                                      ICryptoCurrencyExchangeService cryptoCurrencyExchangeService,
                                      IMapper mapper)
 {
     _cryptoCurrencyRepository      = cryptoCurrencyRepository;
     _cryptoCurrencyExchangeService = cryptoCurrencyExchangeService;
     _mapper = mapper;
 }