static IEnumerable <Note> Read(IFileSystemInfo info) { if (string.Equals(".md", info.Extension, StringComparison.InvariantCultureIgnoreCase)) { return(MarkdownNotesReader.Read(info.FullName)); } else if (string.Equals(".txt", info.Extension, StringComparison.InvariantCultureIgnoreCase)) { return(NotesReader.Read(info.FullName)); } return(Enumerable.Empty <Note>()); }
public void NotesReaderTest() { var notes = NotesReader.Read(TestFile("NotesExample.txt")); log.Info(notes.ListFormat()); }