Ejemplo n.º 1
0
        public static DataUpdateHelper GetDataUpdateHelper_BiaoPuYongHua()
        {
            string            pluginPath        = DataUpdateConst.PLUGINPATH;
            string            srcDataPath       = DataUpdateConst.SRCDATAPATH_BIAOPUYONGHUA;
            UpdatedDataLoader updatedDataLoader = new UpdatedDataLoader(pluginPath);
            IDataProvider     dataProvider      = new DataProvider_BiaoPuYongHua(srcDataPath, pluginPath);
            DataUpdateHelper  dataUpdateHelper  = new DataUpdateHelper(pluginPath, updatedDataLoader, dataProvider);

            return(dataUpdateHelper);
        }
Ejemplo n.º 2
0
        public void TestPrepare()
        {
            string pluginPath     = DataUpdateConst.PLUGINPATH;
            string srcDataPath    = DataUpdateConst.SRCDATAPATH_BIAOPUYONGHUA;
            string targetDataPath = DataUpdateConst.DATACENTERSOURCEPATH;

            dataprovider.IDataProvider dataProvider = new DataProvider_BiaoPuYongHua(srcDataPath, pluginPath);
            StepPreparer stepPreparer = new StepPreparer(pluginPath, srcDataPath, targetDataPath, false, dataProvider);
            List <IStep> steps        = stepPreparer.GetAllSteps();

            AssertUtils.PrintLineList(steps);
        }