title: Instantiating IOptions<> in xunit
body: <p>I'm trying to write an xunit test for a class (in a .net Core project) that looks something like:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public Class FoodStore:IFoodStore
  {
      FoodList foodItems;
  
      public FoodStore(IOptions&lt;FoodList&gt; foodItems)
      {
          this.foodItems = foodItems;
      }
  
      public bool IsFoodItemPresentInList(string foodItemId)
      {
          //Logic to search from Food List
      }
  }`
  </code></pre>
  
  <p>Note: <code>FoodList</code> is actually a json file, containing data, that is loaded and configured in the Startup class.</p>
  
  <p>How can I write an xunit test with appropriate dependency injection to test the <code>IsFoodItemPresentInList</code> method ?</p>