title: how to populate ObjectResult from List<>
body: <p>In order to test a method that uses a stored procedure, a fake method has been created. This method is to return a list of  ints.</p>
  
  <p>Something like this ...</p>
  
  <pre><code>    public virtual ObjectResult&lt;Nullable&lt;int&gt;&gt; available_IDs( ... )
      {
          List&lt;int?&gt; fakeAvailableIDList = new List&lt;int?&gt;();
          fakeAvailableIDList.Add(1);
          fakeAvailableIDList.Add(2);
          fakeAvailableIDList.Add(3);
  
          ObjectResult&lt;Nullable&lt;int&gt;&gt; result = fakeAvailableIDList.All(m =&gt; m &gt; 0);
          return result;
      }
  </code></pre>
  
  <p>which fails with </p>
  
  <pre><code>Cannot implicitly convert type 'bool' to 'System.Data.Objects.ObjectResult&lt;int?&gt;'
  </code></pre>
  
  <p>tried (amoungst other things)</p>
  
  <pre><code>ObjectResult&lt;Nullable&lt;int&gt;&gt; result = fakeAvailableIDList.All(m =&gt; m &gt; 0);
  </code></pre>
  
  <p>which gives</p>
  
  <pre><code>Cannot implicitly convert type 'System.Collections.Generic.List&lt;int?&gt;' to 'System.Data.Objects.ObjectResult&lt;int?&gt;'
  </code></pre>
  
  <p>how can I get a List&lt;> into ObjectResult ?</p>