public void FixtureSetUp() { var brokerAdmin = new RabbitBrokerAdmin(); brokerAdmin.StartupTimeout = 10000; brokerAdmin.StartBrokerApplication(); this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); }
public void CreateConnectionFactory() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); var connectionFactory = new CachingConnectionFactory(); connectionFactory.ChannelCacheSize = concurrentConsumers; connectionFactory.Port = BrokerTestUtils.GetPort(); template.ConnectionFactory = connectionFactory; }
/// <summary> /// Initializes a new instance of the <see cref="RabbitTransactionManagerIntegrationTests"/> class. /// </summary> /// <remarks> /// </remarks> public RabbitTransactionManagerIntegrationTests() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(ROUTE); }
/// <summary> /// Initializes a new instance of the <see cref="RabbitAdminIntegrationTests"/> class. /// Initializes a new instance of the <see cref="T:System.Object"/> class. /// </summary> /// <remarks> /// </remarks> public RabbitAdminIntegrationTests() { this.connectionFactory = new CachingConnectionFactory(); this.connectionFactory.Port = BrokerTestUtils.GetPort(); this.brokerIsRunning = BrokerRunning.IsRunning(); }
public void SetUp() { this.brokerIsRunningAndQueue1Empty = BrokerRunning.IsRunningWithEmptyQueues(queue1); this.brokerIsRunningAndQueue2Empty = BrokerRunning.IsRunningWithEmptyQueues(queue2); }
public void TearDown() { // Release resources this.brokerIsRunning = null; this.connectionFactory.Dispose(); }
public void SetUp() { this.connectionFactory = new CachingConnectionFactory(); this.brokerIsRunning = BrokerRunning.IsRunning(); this.connectionFactory.Port = BrokerTestUtils.GetPort(); }
public void SetUp() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); }
/// <summary> /// Initializes a new instance of the <see cref="MessageListenerBrokerInterruptionIntegrationTests"/> class. /// </summary> /// <remarks> /// </remarks> public MessageListenerBrokerInterruptionIntegrationTests() { var directory = new DirectoryInfo("target/rabbitmq"); if (directory.Exists) { directory.Delete(true); } logger.Debug("Setting up broker"); this.brokerAdmin = BrokerTestUtils.GetRabbitBrokerAdmin(); // panic.setBrokerAdmin(brokerAdmin); if (environment.IsActive()) { this.brokerAdmin.StartupTimeout = 10000; this.brokerAdmin.StartNode(); } this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(this.queue); this.brokerIsRunning.Port = BrokerTestUtils.GetAdminPort(); }
public void SetUp() { this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue); var mocker = new AutoMoqer(); var mockErrorHandler = mocker.GetMock<IErrorHandler>(); this.errorHandler = mockErrorHandler; }