Skip to content

Instantly share code, notes, and snippets.

@codereflection
Created March 14, 2011 17:38
Show Gist options
  • Select an option

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

Select an option

Save codereflection/869520 to your computer and use it in GitHub Desktop.
I haz a song stuck in mah head
Establish context = () =>
{
fileName = @"some path\\20110303_Executions_US.CSV";
fileSystem.GetFileName(fileName).Returns(@"20110303_Executions_US.CSV");
records = new[]
{
new SixOughtSixFileMap { Instruction = "combo no 1" },
new SixOughtSixFileMap { Instruction = "two" },
new SixOughtSixFileMap { Instruction = "three" },
new SixOughtSixFileMap { Instruction = "four" },
new SixOughtSixFileMap { Instruction = "five" },
new SixOughtSixFileMap { Instruction = "everybody like a Chinese }," },
new SixOughtSixFileMap { Instruction = "steamed or fried." },
new SixOughtSixFileMap { Instruction = "from the tiny restaurant around the corner" },
new SixOughtSixFileMap { Instruction = "so you say you" },
new SixOughtSixFileMap { Instruction = "want some wanton soup with your order" }
};
importEngine.ReadFile(fileName).Returns(records);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment