Open ynauls opened 6 years ago
@ynauls https://github.com/OData/WebApi/issues/1352#issuecomment-397385479 may help you with your unit testing - not nice, but it works :)
@freeranger, thank you, i saw that earlier and it works. I would def like some support out of the box :)
Add interface/support to unit test ODataQueryOptions with a mock framework. I implemented logic using the following sample from here Server-Driven Paging. The code works, however, i am unable to unit test due to complexity of creating ODataQueryOptions
Assemblies affected
Microsoft.AspNet.OData.Query (7.0.1)
Reproduce steps
Create unit test sample outside "Microsoft.AspNet.OData" package.
Expected result
Able to easily create unit test for logic passing in a ODataQueryOptions
Actual result
unable to create unit tests