コード例 #1
0
        public void When_resetting_a_connection_that_exists()
        {
            var connectionFactory = new ConnectionFactory {
                HostName = "localhost"
            };

            _connectionPool.ResetConnection(connectionFactory);

            _connectionPool.GetConnection(connectionFactory).Should().NotBeSameAs(_originalConnection);
        }
コード例 #2
0
        public RMQMessageGatewayConnectionPoolResetConnectionExists()
        {
            _connectionPool = new RmqMessageGatewayConnectionPool("MyConnectionName", 7);

            var connectionFactory = new ConnectionFactory {
                HostName = "localhost"
            };

            _originalConnection = _connectionPool.GetConnection(connectionFactory);
        }