March 2011
1 post
Should your repository be IQueryable or contain...
If your Repository is an IQueryable you are going to have a really hard time at mocking. What I ended up doing was exactly what the answer suggested and have my repository expose an IQueryable, it makes testing and mocking easier.