public void Test_GetCached() { var configInfo = _provider.GetConfig("default"); var cachedConfig = _provider.GetCached("default"); Assert.AreEqual(cachedConfig, configInfo); }
public virtual void SetUp() { var factory = ConnectionFactory.GetDefault(); _connectionPool = new DefaultConnectionPool(_defaultClientConfig.ConnectionPoolConfiguration, Node.GetEndPoint(Server), factory); _connectionPool.Initialize(); _provider = new FileSystemConfigProvider(_defaultClientConfig, ConnectionFactory.GetDefault()); _configInfo = _provider.GetCached(); _vBucket = _configInfo.HashToVBucket(Key); }
public void TestFixtureSetup() { _config = new ConnectionPoolConfig(10, 5, 1000, 1000, 1000, 1000); var factory = ConnectionFactory.GetDefault(); _connectionPool = new DefaultConnectionPool(_config, Node.GetEndPoint(Server), factory); _connectionPool.Initialize(); _provider = new FileSystemConfigProvider(_defaultClientConfig, ConnectionFactory.GetDefault()); _configInfo = _provider.GetCached(); _ioStrategy = new AwaitableIOStrategy(_connectionPool, null); _state = _state = new ClusterState(_defaultClientConfig); }