예제 #1
0
        public void _02_CnReporsitoryTest_GetFromWeb()
        {
            var repo = new CnReporsitory();
            var list = repo.GetListFromWeb().ToArray();

            var str = JsonUtil.Serialize(list);
        }
예제 #2
0
        public void _03_CnReporsitoryTest_TradeFromWeb()
        {
            var repo = new CnReporsitory();
            var list = repo.GetDailyTadingInfo("600030").ToArray();

            var str = JsonUtil.Serialize(list);
        }
예제 #3
0
파일: AutoCheck.cs 프로젝트: ayxue/Stocks
        public void _01_CheckProductList()
        {
            var repo = new CnReporsitory();
            var list = repo.GetListFromFile().ToArray();

            var webMeta = new ListService().GetResult(1);

            Assert.AreEqual(webMeta.Count, list.Count(), string.Format("More or less products in the file. File: {0}, Remote: {1}", list.Count(), webMeta.Count));
        }
예제 #4
0
        public void _01_CnReporsitoryTest_GetFromFile()
        {
            var repo = new CnReporsitory();
            var list = repo.GetListFromFile().ToArray();

            var webMeta = new ListService().GetResult(1);

            Assert.AreEqual(webMeta.Count, list.Count());
        }