Пример #1
0
            public WhenEventIsNotHandled()
            {
                var bus = new EventBus();

                bus.Subscribe <EventBus.DeadEvent>(e => _deadEvent = e);

                bus.Publish("badger");
            }
Пример #2
0
            public WhenAPreviouslySubscribedEventIsNotHandled()
            {
                var bus = new EventBus();

                bus.Subscribe <EventBus.DeadEvent>(e => _deadEvent = e);
                bus.Subscribe <string>(_ => {}).Dispose();

                bus.Publish("badger");
            }