Beispiel #1
0
        public async Task GetDocumentFromReplicaAsync_Success()
        {
            IgnoreIfNoReplicas();

            var key   = "GetDocumentFromReplicaAsync_Success";
            var value = "thevalue";

            _bucket.Remove(key);
            _bucket.Insert(key, value, ReplicateTo.One);
            var result = await _bucket.GetDocumentFromReplicaAsync <string>(key).ConfigureAwait(false);

            Assert.True(result.Success);
        }