public void Should_get_all_handled_events_form_interface()
        {
            var supportedEvents = EventHandlerExtensions.GetEventTypesWhichHandlerSupports <IEventHandler <EventB> >();

            supportedEvents.Should().HaveCount(1);
            supportedEvents.Should().Contain(typeof(EventB));
        }
        public void Should_get_all_handled_events_form_class()
        {
            var supportedEvents = EventHandlerExtensions.GetEventTypesWhichHandlerSupports <TestHandler>();

            supportedEvents.Should().HaveCount(2);
            supportedEvents.Should().Contain(typeof(EventA));
            supportedEvents.Should().Contain(typeof(EventB));
        }