C#C
C#14mo ago
Jiry_XD

✅ Integration testing

I just watched this video, and instead of seeding his database he is using a Faker class which generates the data. How does this work?
Within he is using a CustomerRequest is this basically his DTO object?

Before watching his video my approach in Integration Tests was:
Seed Database
Run Test
Clear DB
Seed DB
Run Test
...

I wanted to optimize it hence I watched his video about Respawn but it doesn't seem like he is seeding at all with the Faker?
How does he test get requests if there is no data inside DB?

https://www.youtube.com/watch?v=E4TeWBFzcCw
Screenshot below this was taken at 1:28 min into the video
image.png
YouTubeNick Chapsas
Check out my courses: https://dometrain.com
Become a Patreon and get source code access: https://www.patreon.com/nickchapsas

Hello everybody I'm Nick and in this video I will show you what I think is the best way to reset your database to a clean state, every time you run a test. This works great with integration testing but other forms of test...
Was this page helpful?