// GET: Home public ActionResult Index() { var r = new Random(); var numItemsInOrder = r.Next(0, 20); var model = new NewOrderModel(numItemsInOrder); var orderCreator = new OrderCreator(); orderCreator.Submit(model); return View(); }
static void Main(string[] args) { Console.WriteLine("hit enter to start"); Console.ReadLine(); var service = new OrderCreator(); for (var i = 0; i < 100; i++) { var order = CreateNewSampleOrderAcceptedEvent(); service.Submit(order); } }