Skip to content

Instantly share code, notes, and snippets.

@jeffrymorris
Created December 22, 2018 00:30
Show Gist options
  • Save jeffrymorris/f767e5fdfdbc1a7ed31bcb449ba16f6d to your computer and use it in GitHub Desktop.
Save jeffrymorris/f767e5fdfdbc1a7ed31bcb449ba16f6d to your computer and use it in GitHub Desktop.
BinaryCollection for non-JSON ops
var mockBucket = new Mock<IBucket>();
var mockBinaryCollection = new Mock<IBinaryCollection>();
var collection = new CouchbaseCollection(mockBucket.Object, "0x0", "_default", mockBinaryCollection.Object);
var binaryCollection = collection.Binary;
var result = binaryCollection.Increment("someid");
//or
var result1 = collection.Binary.Increment("someid");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment