public void ShouldReturnProperHandlers()
        {
            //Arrange
            var registry = new EventHandlersRegistry();

            registry.Register(CreateHandler <TestEvent>());
            registry.Register(CreateHandler <TestEvent>());
            registry.Register(CreateHandler <TestEvent2>());


            //Act
            var handlers = registry.Get <TestEvent>().ToList();


            //Assert
            Assert.Equal(2, handlers.Count);
        }
        public void ShouldReturnEmptyHandlersList()
        {
            //Arrange
            var registry = new EventHandlersRegistry();

            registry.Register(CreateHandler <TestEvent>());
            registry.Register(CreateHandler <TestEvent>());
            registry.Register(CreateHandler <TestEvent2>());


            //Act
            var handlers = registry.Get <TestEvent3>().ToList();


            //Assert
            Assert.Empty(handlers);
        }