public void Setup()
        {
            Executor = new StepDefinitionsExecutor();

            Executor.InitializeDependencyResolver();
            Executor.InitializeMessageBus();
            Executor.ResetInMemoryTestData();
            Executor.RemoveRequestQueues();
        }
        private static void PublishOneMessageToOneSubscriber(StepDefinitionsExecutor executor)
        {
            executor.ResetInMemoryTestData();

            executor.PerformSubscription<EventOccurred>(
                executor.MessagesReceivedBySubscriber1,
                executor.MessageHandlerForSubscriber1,
                "DadoQueUmAssinanteSeInscrevaParaReceberAMensagemEventOccurred",
                null
            );

            executor.PerformPublication<EventOccurred>();

            //Dá algum tempo para que as filas recebam as mensagens, antes de remover a inscrição
            executor.Wait(3);

            executor.RemoveAllSubscriptions();
        }