Example #1
0
 public override void MyTestInitialize()
 {
     base.MyTestInitialize();
     accessor = Upload506Master.Accessor.Instance(null);
     master   = accessor.CreateNewT(manager, null);
     Assert.IsNotNull(master);
 }
Example #2
0
 public Upload506FileProcessor(string filePath, Upload506Master uploadMaster)
 {
     UploadMaster = uploadMaster;
     FilePath     = filePath;
     Init();
     m_ExcelFileWrapper = new ExcelFileWrapper();
 }
Example #3
0
 public Upload506FileProcessor(Stream stream, string fileName, Upload506Master uploadMaster)
 {
     UploadMaster  = uploadMaster;
     FilePath      = fileName;
     m_InputStream = stream;
     //UploadMaster.InputStream = m_InputStream;
     Init();
     m_ExcelFileWrapper = new ExcelFileWrapper();
 }
Example #4
0
 public Upload506FileProcessor(Upload506Master uploadMaster)
 {
     UploadMaster = uploadMaster;
     if (UploadMaster.StoredData is IWorkbook)
     {
         m_ExcelFileWrapper = new ExcelFileWrapper((IWorkbook)UploadMaster.StoredData);
         m_ExcelFileWrapper.ShoudDisposeWorkbook = false;
         InitCellIndicesFromWorkbook();
     }
     else
     {
         m_ExcelFileWrapper = new ExcelFileWrapper();
         m_DbaseFile        = (FlatDatabase.DBase.File)UploadMaster.StoredData;
         ValidateHeader(m_DbaseFile);
     }
     Init();
 }
Example #5
0
 public override void TestCleanup()
 {
     accessor = null;
     master   = null;
     base.TestCleanup();
 }