public static string ReadAllText(this IReadOnlyFileSystem fileSystem, FileName fileName) { using (var reader = fileSystem.OpenText(fileName)) { return(reader.ReadToEnd()); } }
public TextReader OpenText(FileName fileName) { return(fileSystem.OpenText(basePath.Combine(fileName))); }