I'm using the Moq framework. I'm trying to mock data from a function call, but the problem is, the function RETURNS a boolean, and the response data comes out of an OUT variable in the form of BsonArray. How can I mock this out variable?
database.runQuery(query, out BsonArray result, out err, out errorMessage);
How do we setup this function to be available for mocking?
e.g. mock.Setup(x => x.runQuery(It.IsAnyblahblah)
I've tried before and failed. Help me