protected void SetupRabbitMqFactory()
 {
     RabbitMqFactory = MockRepository.GenerateStub<RabbitMqFactory>();
     RabbitMqFactory
         .Stub(x => x.GetConnectionFactory(QueueEndpoint))
         .Return(CreateFactoryMock(QueueEndpoint, BasicProperties, MessageData));
     RabbitMqFactory
         .Stub(x => x.GetBasicConsumer(Model, Connection))
         .Return(ConsumerWrapper);
 }
Beispiel #2
0
 protected void SetupRabbitMqFactory(string exchange)
 {
     SetupExchange(exchange);
     Properties = MockRepository.GenerateStub<IBasicProperties>();
     SetupQueueEndpointProvider("testendpoint", "vhost", "testqueue", exchange);
     RabbitMqFactory = MockRepository.GenerateStub<RabbitMqFactory>();
     RabbitMqFactory
         .Stub(x => x.GetConnectionFactory(QueueEndpoint))
         .Return(CreateFactoryMock(QueueEndpoint, Properties, MessageData));
 }