コード例 #1
0
        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);
        }
コード例 #2
0
 public RabbitMQChannelManager(
  IConnectionFactory connectionFactory,
  ILogger logger,
  RabbitMQChannelManagerSettings settings)
 {
     this.connectionFactory = connectionFactory;
      this.logger = logger;
      this.settings = settings;
 }
コード例 #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);
        }