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(); }
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); }