title: How to fake EntityFramework.Extended FutureQuery?
body: <p>I'm looking to setup a fake repository.</p>
  
  <pre><code>public class FooRepo {
  
      public FutureFoo&lt;Foo&gt; GetById(int id) {
  
          var foo = new Foo();
          return new FutureValue(foo);
      }
  
      public FutureQuery&lt;Foo&gt; GetByCategory(int categoryId) {
  
          var foos = new[] { new Foo(), new Foo() new Foo() };
  
          return  //what goes here?
      }
  
  }
  </code></pre>
  
  <p>The purpose of this is for writing data dependent tests while not depending on any database connectivity. This was really straightforward for the <code>FutureValue&lt;&gt;</code> type as it provides a constructor that accepts a direct object. However the constructor for <code>FutureQuery&lt;&gt;</code> takes the arguments <code>IQueryable query, Action loadAction</code></p>
  
  <p>Can i just ignore <code>loadAction</code>?</p>
  
  <p>Such as: <code>new FutureQuery&lt;Foo&gt;(foos.AsQueryable(), () =&gt; { });</code></p>
  
  <p>Or what is the proper way to go about this?</p>
  
  <hr>
  
  <p>Coerced solution:</p>
  
  <pre><code>(FutureQuery&lt;Foo&gt;) Activator.CreateInstance(typeof(FutureQuery&lt;Foo&gt;),
                     BindingFlags.NonPublic | BindingFlags.Instance, null, 
                     new object[] { foos.AsQueryable(), null }, null);
  </code></pre>