Skip to content

Instantly share code, notes, and snippets.

@codereflection
Created September 29, 2010 20:25
Show Gist options
  • Select an option

  • Save codereflection/603476 to your computer and use it in GitHub Desktop.

Select an option

Save codereflection/603476 to your computer and use it in GitHub Desktop.
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