public void TestWritingDataToFileCreatesFile() { var content = CreateStreamForDataString("col1,col2,col3"); var filePath = @"..\..\IO\WriteTarget\Output.csv"; writer.SaveDataToFile(content, filePath); var exists = File.Exists(filePath); File.Delete(filePath); Assert.IsTrue(exists); }
private string WriteDataToFile(string data, string path) { return(_writer.SaveDataToFile(TranscribeDataStringToStream(data), path)); }
private string WriteDataToFile(string data, string path) { var dataStream = TranscribeDataStringToStream(data); return(_fileWriter.SaveDataToFile(dataStream, path)); }