Ejemplo n.º 1
0
        public void Query_Calls_Cache()
        {
            var cacheStrategy = new EquityInterDayMarketCacheStrategy(this._cache);
            var dataRequest   = MarketDataRequest.Null();

            cacheStrategy.Query(dataRequest);

            A.CallTo(() => this._cache.Get(dataRequest)).MustHaveHappenedOnceExactly();
        }
Ejemplo n.º 2
0
        public void Query_Returns_Interday_Market_Data_Response()
        {
            var cacheStrategy = new EquityInterDayMarketCacheStrategy(this._cache);
            var dataRequest   = MarketDataRequest.Null();

            var response = cacheStrategy.Query(dataRequest);

            Assert.IsNotNull(response);
            Assert.IsInstanceOf <EquityInterDayMarketDataResponse>(response);
        }