Created
August 16, 2010 08:55
-
-
Save jstclair/526658 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
// 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