Skip to content

Instantly share code, notes, and snippets.

@jstclair
Created August 16, 2010 08:55
Show Gist options
  • Save jstclair/526658 to your computer and use it in GitHub Desktop.
Save jstclair/526658 to your computer and use it in GitHub Desktop.
// re-factored as extension methods on user; updated Sold to use named-args as well
var transactions = new[]
{
theUser.StartedOn(monday),
theUser.Bought(2000, of: AYB, @for: 1980, on:tuesday),
theUser.Bought(3000, of: AYB, @for: 3204, on:tuesday),
theUser.Sold(1500, of: AYB, @at:1750, on:wednesday),
theUser.Bought(5000, of:AIK, @for:10000, on:wednesday),
theUser.Bought(4000, of:AKVA, @for: 40000, on:thursday),
theUser.Sold(150, of: AYB, @at: 175, on:thursday),
theUser.Bought(2500, of:APP, @for:25000,on:friday),
theUser.Bought(3000, of:AYB, @for: 3100, on:friday)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment