Wrapping IQueryable objects for testability

In some cases, testing IQueryable objects can be difficult. They are hard to mock and the LINQ magic that’s happening under the hood is usually hidden from the programmer. It would be convenient to wrap an IQueryable around a mockable container so that our code can be tested even when the actual data sources may not be…