public void SetUp() { this.brokerIsRunningAndQueue1Empty = BrokerRunning.IsRunningWithEmptyQueues(queue1); this.brokerIsRunningAndQueue1Empty.Apply(); this.brokerIsRunningAndQueue2Empty = BrokerRunning.IsRunningWithEmptyQueues(queue2); this.brokerIsRunningAndQueue2Empty.Apply(); }
public void FixtureSetUp() { var brokerAdmin = new RabbitBrokerAdmin(); brokerAdmin.StartupTimeout = 10000; brokerAdmin.StartBrokerApplication(); this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(ROUTE); }
public void SetUp() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); if (!this.brokerIsRunning.Apply()) { Assert.Ignore("Cannot execute test as the broker is not running with empty queues."); } }
public void Create() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(ROUTE); this.brokerIsRunning.Apply(); var connectionFactory = new CachingConnectionFactory(); connectionFactory.Port = BrokerTestUtils.GetPort(); this.template = new RabbitTemplate(connectionFactory); }
public void SetUp() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); this.brokerIsRunning.Apply(); var mockErrorHandler = new Mock <IErrorHandler>(); this.errorHandler = mockErrorHandler; }
public void CreateConnectionFactory() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(this.queue); this.brokerIsRunning.Apply(); var connectionFactory = new CachingConnectionFactory(); connectionFactory.ChannelCacheSize = this.concurrentConsumers; connectionFactory.Port = BrokerTestUtils.GetPort(); this.template.ConnectionFactory = connectionFactory; }
public void SetUp() { this.concurrentConsumers = 1; this.messageCount = 10; this.transactional = false; this.acknowledgeMode = AcknowledgeModeUtils.AcknowledgeMode.Auto; this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue, sendQueue); this.brokerIsRunning.Apply(); Assert.IsTrue(this.container == null); }
public void CreateConnectionFactory() { if (environment.IsActive()) { var connectionFactory = new CachingConnectionFactory(); connectionFactory.ChannelCacheSize = this.concurrentConsumers; connectionFactory.Port = BrokerTestUtils.GetAdminPort(); this.connectionFactory = connectionFactory; this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(this.queue); this.brokerIsRunning.Apply(); } }
public void SetUp() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); this.brokerIsRunning.Apply(); }
/// <summary>The before fixture set up.</summary> public override void BeforeFixtureSetUp() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); }
/// <summary> /// Code to execute after fixture setup. /// </summary> public override void AfterFixtureSetUp() { this.brokerIsRunning = BrokerRunning.IsRunning(); }
public void SetUp() { this.connectionFactory = new CachingConnectionFactory(); this.brokerIsRunning = BrokerRunning.IsRunning(); this.connectionFactory.Port = BrokerTestUtils.GetPort(); }
/// <summary> /// Initializes a new instance of the <see cref="RabbitTransactionManagerIntegrationTests"/> class. /// </summary> public RabbitTransactionManagerIntegrationTests() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(ROUTE); this.brokerIsRunning.Apply(); }
public void SetUp() { this.brokerIsRunning = BrokerRunning.IsRunning(); this.brokerIsRunning.Apply(); }