Beispiel #1
0
 public void GetsHeader()
 {
     DailyDownloader dl = new DailyDownloader();
     var ret = dl.GetHeaderDictionary(pageMode);
     foreach (var item in ret)
     {
         Debug.WriteLine(@"{0} - {1}", item.Key,item.Value);
     }
     Assert.IsTrue(ret.Count > 0);
 }
Beispiel #2
0
        public void GetsHeader()
        {
            DailyDownloader dl  = new DailyDownloader();
            var             ret = dl.GetHeaderDictionary(pageMode);

            foreach (var item in ret)
            {
                Debug.WriteLine(@"{0} - {1}", item.Key, item.Value);
            }
            Assert.IsTrue(ret.Count > 0);
        }
Beispiel #3
0
        public void GetsOpenInterestListFromStream()
        {
            DailyDownloader dl = new DailyDownloader();
            dl.GetHeaderDictionary(pageMode);
            string filename = dl.GetRowListFilename(pageMode);

            using (StreamReader sr = new StreamReader(filename))
            {
                var ret = dl.GetOpenInterestLists(sr, pageMode);
            }

            Assert.IsTrue(dl.CallsDictionary.Count > 0);
            Assert.IsTrue(dl.PutsDictionary.Count > 0);
        }
Beispiel #4
0
        public void GetsOpenInterestListFromStream()
        {
            DailyDownloader dl = new DailyDownloader();

            dl.GetHeaderDictionary(pageMode);
            string filename = dl.GetRowListFilename(pageMode);

            using (StreamReader sr = new StreamReader(filename))
            {
                var ret = dl.GetOpenInterestLists(sr, pageMode);
            }

            Assert.IsTrue(dl.CallsDictionary.Count > 0);
            Assert.IsTrue(dl.PutsDictionary.Count > 0);
        }