Created
December 22, 2018 00:30
-
-
Save jeffrymorris/f767e5fdfdbc1a7ed31bcb449ba16f6d to your computer and use it in GitHub Desktop.
BinaryCollection for non-JSON ops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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