示例#1
0
        public void Setup()
        {
            _eventTracker = 0;

            _someSource = Substitute.For <ICaffeine>();
            _uut        = new Control(_someSource);

            _uut.RecipientEventTrigger += (sender, args) => { ++_eventTracker; };
        }
示例#2
0
 public Control(ICaffeine caffeine)
 {
     caffeine.CaffeineAmountChangedEvent += HandleCaffeineAmountChangedEvent;
 }