public override void MyTestInitialize() { base.MyTestInitialize(); accessor = Upload506Master.Accessor.Instance(null); master = accessor.CreateNewT(manager, null); Assert.IsNotNull(master); }
public Upload506FileProcessor(string filePath, Upload506Master uploadMaster) { UploadMaster = uploadMaster; FilePath = filePath; Init(); m_ExcelFileWrapper = new ExcelFileWrapper(); }
public Upload506FileProcessor(Stream stream, string fileName, Upload506Master uploadMaster) { UploadMaster = uploadMaster; FilePath = fileName; m_InputStream = stream; //UploadMaster.InputStream = m_InputStream; Init(); m_ExcelFileWrapper = new ExcelFileWrapper(); }
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(); }
public override void TestCleanup() { accessor = null; master = null; base.TestCleanup(); }