title: How to Pass a JSON Values to Nunit Testcase Data
body: <p>I am reading a JSON file and stores the values as a object
  Car : <code>Name</code>, <code>Cost</code>, <code>Yearmodel</code></p>
  <p>Now I need to pass these 3 JSON object values to this <code>Testcasedata</code>.
  Likewise I need to pass multiple values while reading the JSON file data.
  Any idea explaining on how to do this?</p>
  <pre><code>public string JSONParser()
          {
  
  
              StreamReader r = new StreamReader(&quot;ESAggregationQuery.json&quot;);
              string jsonString = r.ReadToEnd();
               m = JsonConvert.DeserializeObject&lt;AggModel&gt;(jsonString);
  
              carName = m.carName;
              costPrice = m.costPrice;
              modelYear = m.modelYear;
  
              return &quot;1&quot;;
          }
  
  private static IEnumerable&lt;TestCaseData&gt; ESAggregativeTestData
          {
              get
              {               
                      yield return new TestCaseData[] { m.carName, m.costPrice, m.modelYear };
                  }
  
          }
  ```
  </code></pre>