public void TestLoadHistoricalDataWithQuote()
        {
            _hist     = new QuoteBasicFileStore(_exchange, _folder, _numBarsInFile);
            _lasttime = _timenow - 10000 * _interval;

            //download 700 bars and save to first file
            var r     = _hist.Update(_moqDownload.Object, _symbol, _interval).Result;
            var quote = _hist.Load(_symbol, _interval, 0, 1000);

            Assert.IsTrue(quote != null && quote.Count == 700);

            //download 700 bars and save to first file
            r     = _hist.Update(_moqDownload.Object, _symbol, _interval).Result;
            quote = _hist.Load(_symbol, _interval, 0, 1000);
            Assert.IsTrue(quote != null && quote.Count == 1000);

            //download 700 bars and save to 2nd file
            r     = _hist.Update(_moqDownload.Object, _symbol, _interval).Result;
            quote = _hist.Load(_symbol, _interval, 0, 1000);
            Assert.IsTrue(quote != null && quote.Count == 700);

            //download 700 bars and save to 2nd file
            r     = _hist.Update(_moqDownload.Object, _symbol, _interval).Result;
            quote = _hist.Load(_symbol, _interval, 0, 1000);
            Assert.IsTrue(quote != null && quote.Count == 1000);
        }
        public void TestLoadHistoricalDataNoQuote()
        {
            _hist = new QuoteBasicFileStore(_exchange, _folder, _numBarsInFile);

            //since no quote in folder, null returned
            var quote = _hist.Load(_symbol, _interval, 0, 1000);

            Assert.IsTrue(quote == null);
        }