public void When_resetting_a_connection_that_exists() { var connectionFactory = new ConnectionFactory { HostName = "localhost" }; _connectionPool.ResetConnection(connectionFactory); _connectionPool.GetConnection(connectionFactory).Should().NotBeSameAs(_originalConnection); }
public RMQMessageGatewayConnectionPoolResetConnectionExists() { _connectionPool = new RmqMessageGatewayConnectionPool("MyConnectionName", 7); var connectionFactory = new ConnectionFactory { HostName = "localhost" }; _originalConnection = _connectionPool.GetConnection(connectionFactory); }