Beispiel #1
0
 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);
        }
Beispiel #3
0
 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);
        }
Beispiel #5
0
        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);
        }
Beispiel #8
0
 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();
 }
Beispiel #10
0
 /// <summary>The before fixture set up.</summary>
 public override void BeforeFixtureSetUp()
 {
     this.brokerIsRunning = BrokerRunning.IsRunningWithEmptyQueues(queue);
 }
Beispiel #11
0
 /// <summary>
 /// Code to execute after fixture setup.
 /// </summary>
 public override void AfterFixtureSetUp() { this.brokerIsRunning = BrokerRunning.IsRunning(); }
Beispiel #12
0
 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();
 }