blob: 674988a7d2749bcfcc3b1b8d0059715ae81d6423 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System.IO;
using Interfaces;
namespace Graph.IO
{
// class for writing to file using IFileWriter (i.e. Dependancy injection for unit testing)
public class FileWriter : IFileWriter
{
string FilePath { get; }
public FileWriter(string filePath)
{
FilePath = filePath;
}
public void WriteAllLines(string[] lines)
{
File.WriteAllLines(FilePath, lines);
}
}
}
|