public Store() { PromiseTime = TimeSpan.FromMinutes(30); foyrnos = new Foyrnos(); readyOrders = new List <Order>(); drivers = new List <Driver>(); pizzaMakers = new List <PizzaMaker>(); foyrnos.OrderReady += Foyrnos_OrderReady; }
private void Foyrnos_OrderReady(Foyrnos arg1, Order arg2) { Console.WriteLine("[{0}] Order:{1} ready for delivery", FakeTime.Instance.Now, arg2); readyOrders.Add(arg2); }