Created
September 29, 2010 20:25
-
-
Save codereflection/603476 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public IList<object> Import(string filePathAndName) | |
| { | |
| throw new ThisInterfaceMethodSucks("Need to refactor this funk out."); | |
| } | |
| IEnumerable<Message> IFixFileImporter.Import(string filePathAndName) | |
| { | |
| if (!fileSystem.FileExists(filePathAndName)) | |
| throw new FileNotFoundException(); | |
| return fileSystem.ReadAllLines(filePathAndName) | |
| .Select(line => parser.Parse(line)) | |
| .Each(message => repo.Save(message)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment