Integration Testing ASP.NET Core 6 WebAPI Applications



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.