<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ASPNET Core API integration testing where each test has it's own database in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ASPNET-Core-API-integration-testing-where-each-test-has-it-s-own/m-p/75879#M47361</link>
    <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4"&gt;&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm new to ASPNET Core API integration testing. I'm using a custom WebApplicationFactory to spin up my API project and replace the SQLServer DbContext with an InMemoryDatabase. This works fine but I'd like each of my tests to have a clean database but currently my database is setup only at the beginning and is used throughout all the tests. I've search for hours on Google but cannot find any references on how to accomplish this. Do any of you know how to do this?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 20 Apr 2021 03:26:28 GMT</pubDate>
    <dc:creator>YoukimKudoh</dc:creator>
    <dc:date>2021-04-20T03:26:28Z</dc:date>
    <item>
      <title>ASPNET Core API integration testing where each test has it's own database</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ASPNET-Core-API-integration-testing-where-each-test-has-it-s-own/m-p/75879#M47361</link>
      <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4"&gt;&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm new to ASPNET Core API integration testing. I'm using a custom WebApplicationFactory to spin up my API project and replace the SQLServer DbContext with an InMemoryDatabase. This works fine but I'd like each of my tests to have a clean database but currently my database is setup only at the beginning and is used throughout all the tests. I've search for hours on Google but cannot find any references on how to accomplish this. Do any of you know how to do this?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Apr 2021 03:26:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ASPNET-Core-API-integration-testing-where-each-test-has-it-s-own/m-p/75879#M47361</guid>
      <dc:creator>YoukimKudoh</dc:creator>
      <dc:date>2021-04-20T03:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: ASPNET Core API integration testing where each test has it's own database</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ASPNET-Core-API-integration-testing-where-each-test-has-it-s-own/m-p/76390#M47718</link>
      <description>&lt;P&gt;I am also new to ASPNEt so looking a begnner help as requested to this comments.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 09:18:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ASPNET-Core-API-integration-testing-where-each-test-has-it-s-own/m-p/76390#M47718</guid>
      <dc:creator>techmen00</dc:creator>
      <dc:date>2021-05-20T09:18:49Z</dc:date>
    </item>
  </channel>
</rss>

