private (IDriver, ConcurrentQueue<IPooledConnection>) SetupMonitoredDriver()
        {
            var configBuilder = Config.Builder
                .WithMetricsEnabled(true)
                .WithConnectionAcquisitionTimeout(TimeSpan.FromMinutes(5))
                .WithConnectionTimeout(Config.InfiniteInterval)
                .WithMaxConnectionPoolSize(100)
                .WithLogger(new StressTestLogger(_output, LoggingEnabled));
            _configure?.Invoke(configBuilder);
            var config = configBuilder.Build();

            var connectionSettings = new ConnectionSettings(_databaseUri, _authToken, config);
            var bufferSettings = new BufferSettings(config);
            var connectionFactory = new MonitoredPooledConnectionFactory(
                new PooledConnectionFactory(connectionSettings, bufferSettings, config.Logger));

            return ((Internal.Driver) GraphDatabase.CreateDriver(_databaseUri, config, connectionFactory),
                connectionFactory.Connections);
        }
        private (IDriver, ConcurrentQueue <IPooledConnection>) SetupMonitoredDriver()
        {
            var config = new Config
            {
                MetricsEnabled = true,
                ConnectionAcquisitionTimeout = TimeSpan.FromMinutes(5),
                ConnectionTimeout            = Config.InfiniteInterval,
                MaxConnectionPoolSize        = 100,
                Logger = new StressTestLogger(_output, LoggingEnabled)
            };

            var connectionSettings = new ConnectionSettings(_authToken, config);
            var bufferSettings     = new BufferSettings(config);
            var connectionFactory  = new MonitoredPooledConnectionFactory(
                new PooledConnectionFactory(connectionSettings, bufferSettings, config.Logger));

            return((Internal.Driver)GraphDatabase.CreateDriver(_databaseUri, config, connectionFactory),
                   connectionFactory.Connections);
        }