static void ThreadPersistorTest(Object stateInfo)
        {
            List <OrderRecord> orderRecords = (List <OrderRecord>)stateInfo;
            OrderPersistHelper helper       = new OrderPersistHelper(WRITER_PATH);

            foreach (OrderRecord record in orderRecords)
            {
                List <OrderRecord> saveRecord = new List <OrderRecord>();
                saveRecord.Add(record);
                helper.SaveLastRow(saveRecord);
            }
        }
        public void test_renameOldfile()
        {
            deleteMoverFiles();
            createMoverFile();
            OrderPersistHelper helper = new OrderPersistHelper(MOVER_PATH);

            helper.renameOldfile();
            var dir = new DirectoryInfo(MOVER_DIR);

            FileInfo[] infos = dir.GetFiles(MOVER_WILDCARD);
            Console.WriteLine(infos.Length);
            Assert.Greater(infos.Length, 0);
        }