Building backend APIs has become even simpler with ASP.NET Core 6. But what about testing? This video teaches a simple way to create integration tests for ASP.NET Core 6 WebAPI applications.
In this video, we will test the most simplistic API that you’ll ever see.
If you want to learn more about this simple style to build WebAPIs in .NET 6 called MinimalAPIs, check out the Introduction to Minimal APIs video linked in the video description.
00:00 Introduction
00:30 The WebAPI project
01:05 Creating the Test Project
01:42 Setting up the Test Project
03:16 Implementing the First Test
06:00 Implementing the Second Test
07:43 What’s Next?
π Source Code:
https://github.com/claudiobernasconi/MinimalAPIDemo
π Introduction To Minimal APIs in .NET 6:
https://youtu.be/lSlPMDqVhFk
π₯ The FREE Blazor Crash Course:
https://www.youtube.com/watch?v=89Klc6WHElw&list=PLwISgxnkpZGL_LhTQCWwp-WCzupv7lcp0
π C# Programming Playlist:
https://www.youtube.com/watch?v=dKBuvdGsYYc&list=PLwISgxnkpZGIrkQGwOj6kKXLT8CAp9Gct
π Blazor Playlist:
https://www.youtube.com/watch?v=iS1W1DJ3nEQ&list=PLwISgxnkpZGITT6pELfCeQ6qK0G3ujldZ
πIntegration tests in ASP.NET Core (MSDN):
https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests
β
SUBSCRIBE FOR MORE VIDEOS
Subscribe: π https://claudiobernasconi.ch/Subscribe
π CONNECT & SUPPORT
Patreon: https://patreon.com/claudiobernasconi
Twitter: https://www.twitter.com/CHBernasconiC
Blog: https://www.claudiobernasconi.ch
CREDITS
π΅ https://www.bensound.com/
Comments are closed.