Pages

How to Mock or instantiate ResourceResponse

Wednesday, November 13, 2019
Unit testing Or Mock Cosmos DB calls The CosmosDB SDK is not as friendly as it could be when it comes to unit testing (and the CosmosDB SDK team knows it, so it will get better). Normally, the way you would unit test such code would be to mock the calls that would go over the wire and just return the dataset that you want this scenario to return. However here is a list of things that make it really hard for you to test your...
Read more ...