title: How to add test data for my [Facts] in unit test
body: <p>I am using XUnit framework and I have my unit test case written which is basically creating database and its objects. Now I have to write a test case where I have to insert data in Database. and I am able to do that successfully in below code.</p>
  <p>But I would like to know how can I create a set of data which I can use for each of my test case and I don't have to do it again and again. I know there is a way using TabularFixture something in Xunit but haven't used it till today and don't know how it works. So if anyone has any idea?</p>
  <p>here is my test case which is inserting data in my db and it works.</p>
  <pre><code>public class TabularDataFixture
      {
          public TabularDataFixture()
          {
              CreateDefaultLoggerFactory();
          }
      }
  
  
      [CollectionDefinition(&quot;Tabulardata collection&quot;)]
      public class CosmosDbData
      {
  
  [Fact]
          public async Task AddDataInCosmosDbEmulator()
          {
              await ReadConfigAsync();
              Uri collectionUri = UriFactory.CreateDocumentCollectionUri( DatabaseId, RecordingCollection );
              var jObject = new JObject { { &quot;Data&quot;, &quot;Test&quot; } };
              Document doc = await client.CreateDocumentAsync( collectionUri, jObject );
              var response = client.CreateDocumentQuery( collectionUri, &quot;select * from c WHERE c.Data = 'Test'&quot; ).ToList();
              Assert.True( response.Count() &gt; 0) ;            
  
          }
      }
  </code></pre>