I'm trying to create a generic testclass to test my generic controllers. Everything is working fine except this:
I have a method like this: ...private T GetSingle(Expression<Func<T, bool>> expression)
...I'm trying to setup the test like so:...var Guids =...
Scenario:...I have a class with methods, in which one method returns a expression tree.
How can I mock that method....Code:...public Expression<Func<SpecFinderDataModel, bool>> BuildDynamicWhereClause(DataTableAjaxPostModel model)
{
var predic...