private void PizzaMaker_OrderReady(PizzaMaker arg1, Order arg2) { //ok put in the "foyrno" foyrnos.AddOrder(arg2); Console.WriteLine("[{0}] PizzaMaker ({1}) done with order:{2}", FakeTime.Instance.Now, arg1.Name, arg2); }
public void AddPizzaMaker(PizzaMaker pizzaMaker) { Console.WriteLine("[{0}] PizzaMaker (name:{1}) shift started", FakeTime.Instance.Now, pizzaMaker.Name); pizzaMaker.OrderReady += PizzaMaker_OrderReady; pizzaMakers.Add(pizzaMaker); }