public void SetUp()
        {
            _connectionPool.Clear();

            var server = new Mock <IServer>();

            server.Setup(x => x.Send(It.IsAny <IOperation <Object> >())).Returns(new OperationResult <object>());
            var vBucket = new Mock <IVBucket>();

            vBucket.Setup(x => x.LocatePrimary()).Returns(server.Object);

            var keyMapper = new Mock <IKeyMapper>();

            keyMapper.Setup(x => x.MapKey(It.IsAny <string>())).Returns(vBucket.Object);

            var configInfo = new Mock <IConfigInfo>();

            configInfo.Setup(x => x.GetKeyMapper()).Returns(keyMapper.Object);

            var clusterController = new Mock <IClusterController>();

            clusterController.Setup(x => x.Configuration).Returns(new ClientConfiguration());

            _requestExecuter = new CouchbaseRequestExecuter(clusterController.Object, configInfo.Object, _bucketName, _pending);
        }
        public void SetUp()
        {
            //set the opaque generator to zero
            SequenceGenerator.Reset();

            _connectionPool.Clear();
        }
 public void SetUp()
 {
     _connectionPool.Clear();
 }