Skip to content

Instantly share code, notes, and snippets.

@mthomas
Created November 8, 2010 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mthomas/667259 to your computer and use it in GitHub Desktop.
Save mthomas/667259 to your computer and use it in GitHub Desktop.
var names = Array("Mike, Bob, John");
var itemNames = Array(...);
var itemSuffixes = Array(...);
var users = names.Each(name => CreateUser(name + "@demo.company.com", "password"));
var items = 100.Times(i => CreateItem(Pick(itemNames), Pick(itemSuffixes), RandomPrice()));
var transactions = 50.Times(i => PurchaseItem(Pick(users), Pick(items)));
var fulfillments 25.Times(i => FulfillOrder(Take(transactions)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment