public void SetupBeforeEachTest()
        {
            this.connectionFactory = A.Fake<IConnectionFactory>();
             this.logger = A.Fake<ILogger>();
             this.settings = new RabbitMQChannelManagerSettings();

             this.componentUnderTest = new RabbitMQChannelManager(this.connectionFactory, this.logger, this.settings);
        }
 public RabbitMQChannelManager(
  IConnectionFactory connectionFactory,
  ILogger logger,
  RabbitMQChannelManagerSettings settings)
 {
     this.connectionFactory = connectionFactory;
      this.logger = logger;
      this.settings = settings;
 }
Exemplo n.º 3
0
        public void SetupBeforeEachTest()
        {
            this.connectionFactory = A.Fake<IConnectionFactory>();
             this.logger = A.Fake<ILogger>();
             this.settings = new RabbitMQChannelManagerSettings();
             this.connection = A.Fake<IConnection>();

             A.CallTo(() => this.connectionFactory.CreateConnection()).Returns(this.connection);

             this.componentUnderTest = new RabbitMQChannelManager(this.connectionFactory, this.logger, this.settings);
        }