コード例 #1
0
        public void TransferListToCVS()
        {
            string fileName   = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "CvsDirectory", string.Format("{0}.csv", DateTime.Now.ToString("yyyyMMDDHHmmssffff")));
            bool   turnResult = CvsEnginer.TurnCollectionToCsv <Subject>(subjectExports, fileName);

            Assert.AreEqual(true, turnResult);
        }
コード例 #2
0
        public void TransferCVSToSAS()
        {
            var transferManager  = StatTransferManagerFactory.GetAssemblySTM();
            var cvsDataDirectory = transferManager.CreateRandomTempDirectory();
            //数据集合转cvs
            string fileName   = Path.Combine(cvsDataDirectory.FullName, string.Format("{0}.csv", DateTime.Now.ToString("yyyyMMDDHHmmssffff")));
            bool   turnResult = CvsEnginer.TurnCollectionToCsv <Subject>(subjectExports, fileName);
            //cvs转为sas
            bool turnSasOK = false;

            if (turnResult)
            {
                turnSasOK = transferManager.Excute(cvsDataDirectory, "TestFirst");
                transferManager.DelateRandomTempDirectory(cvsDataDirectory);
            }
            Assert.AreEqual(true, turnSasOK);
        }