public void Setup() { _eventTracker = 0; _someSource = Substitute.For <ICaffeine>(); _uut = new Control(_someSource); _uut.RecipientEventTrigger += (sender, args) => { ++_eventTracker; }; }
public Control(ICaffeine caffeine) { caffeine.CaffeineAmountChangedEvent += HandleCaffeineAmountChangedEvent; }