public void Should_get_registered_multi_processor()
        {
            //arrange
            var provider  = new StandardMessageProcessorProvider();
            var processor = new MultipleCommandProcessor(Mock.Of <ICountable>());

            provider.RegisterProcessor(processor);
            //act
            var processorFound    = provider.GetProcessor <TestCommandOne>(typeof(IProcessCommand <TestCommandOne, TestTopicSettings>));
            var processorFoundTwo = provider.GetProcessor <TestCommandTwo>(typeof(IProcessCommand <TestCommandTwo, TestTopicSettings>));

            //assert
            processorFound.Should().Be(processor);
            processorFoundTwo.Should().Be(processor);
        }
        public void Should_get_registered_event_processor()
        {
            //arrange
            var provider  = new StandardMessageProcessorProvider();
            var processor = new EventProcessor(Mock.Of <ICountable>());

            provider.RegisterProcessor(processor);
            //act
            var processorFound = provider.GetProcessor <TestEvent>(typeof(IProcessEvent <TestEvent, TestSubscription, TestTopicSettings>));

            //assert
            processorFound.Should().Be(processor);
        }