public void OpenCalledTwice_NoExceptionThrown(CSVReaderWriterForAnnotation.Mode mode, string inputFilePath) { var readerWriter = new CsvReaderWriter(); readerWriter.Open(inputFilePath, mode); readerWriter.Open(inputFilePath, mode); readerWriter.Close(); }
public void Process(string inputFile) { var reader = new CsvReaderWriter(); reader.Open(inputFile, CSVReaderWriterForAnnotation.Mode.Read); string column1, column2; while (reader.Read(out column1, out column2)) { _mailShot.SendMailShot(column1, column2); } reader.Close(); }