Beispiel #1
0
        private TokenConverter CreateTokenConverter()
        {
            var coinMarketCapClient = new TestCoinMarketCapClient();
            var fixerClient         = new TestFixerClient();
            var currencyService     = new TestCurrencyService();
            var currencyConverter   = new CurrencyConverter(coinMarketCapClient, fixerClient);

            return(new TokenConverter(currencyConverter, currencyService, coinMarketCapClient, fixerClient));
        }
        public ExpressionExtractorTests()
        {
            var currencyService = new TestCurrencyService();

            var tokenQueueFactory   = new TokenQueueFactory();
            var coinMarketCapClient = new TestCoinMarketCapClient();
            var fixerClient         = new TestFixerClient();
            var currencyConverter   = new CurrencyConverter(coinMarketCapClient, fixerClient);
            var tokenConverter      = new TokenConverter(currencyConverter, currencyService, coinMarketCapClient, fixerClient);
            var interpreterFactory  = new InterpreterFactory(tokenConverter, currencyService, tokenQueueFactory);

            this.expressionExtractor = new ExpressionExtractor(interpreterFactory);
        }