public void When_Sending_A_Command_To_The_Processor_When_A_Feature_Switch_Is_On()
        {
            _commandProcessor = new CommandProcessor(_registry, _handlerFactory, new InMemoryRequestContextFactory(), new PolicyRegistry());
            _commandProcessor.Send(_myCommand);

            MyFeatureSwitchedOnHandler.DidReceive(_myCommand).Should().BeTrue();
        }
        public void When_Sending_A_Command_To_The_Processor_When_A_Feature_Switch_Is_On()
        {
            _commandProcessor = CommandProcessorBuilder
                                .With()
                                .Handlers(new HandlerConfiguration(_registry, _handlerFactory))
                                .DefaultPolicy()
                                .NoExternalBus()
                                .RequestContextFactory(new InMemoryRequestContextFactory())
                                .Build();

            _commandProcessor.Send(_myCommand);

            MyFeatureSwitchedOnHandler.DidReceive(_myCommand).Should().BeTrue();
        }