Exemplo n.º 1
0
        //private Dictionary<string, int> dic_OldCodeId_IpoDate = new Dictionary<string, int>();

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="srcDataPath">数据源目录</param>
        /// <param name="pluginPath">插件所在目录</param>
        public DataProvider_BiaoPuYongHua(string srcDataPath, string pluginPath)
        {
            this.srcDataPath                     = srcDataPath;
            this.pluginPath                      = pluginPath;
            this.dataLoader_Variety              = new DataLoader_Variety(pluginPath);
            this.dataprovider_CodeInfo           = new DataProvider_BiaoPuYongHua_CodeInfo(srcDataPath, pluginPath);
            this.dataprovider_TradingDay         = new DataProvider_BiaoPuYongHua_TradingDay(srcDataPath, pluginPath);
            this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginPath, dataLoader_Variety);
        }
Exemplo n.º 2
0
        //[TestMethod]
        public void TestDataProvider_BiaoPuYongHua_Code()
        {
            string srcDataPath = DataUpdateConst.SRCDATAPATH_BIAOPUYONGHUA;
            string pluginPath  = DataUpdateConst.PLUGINPATH;
            DataProvider_BiaoPuYongHua_CodeInfo provider = new DataProvider_BiaoPuYongHua_CodeInfo(srcDataPath, pluginPath);
            List <CodeInfo> codes = provider.GenerateCodes();

            codes.Sort(new CodeInfoComparer());
            AssertUtils.PrintLineList(codes);
        }