Пример #1
0
 public void Initialize()
 {
     _time.Events.Subscribe(_grill.TimeObserver);
     _cart.Events.OfType <HotDogCartEvent, SaleStartedEvent>().Subscribe(_ => _grill.RemoveCookedHotDog());
 }
Пример #2
0
 protected void Act_RemoveCookedHotDog()
 => _grill.RemoveCookedHotDog();