How to unit test Minimal APIs in .NET 6 (and why it's hard)

Опубликовано: 07 Октябрь 2021
на канале: Nick Chapsas
39,463
909

Subscribe: http://bit.ly/ChapsasSub
Check out my courses: https://dometrain.com
Become a Patreon and get source code access:   / nickchapsas  

Hello everybody I'm Nick and in this video I will show you how you can properly unit test Minimal APIs in .NET 6. There has been a few blogs going around showing what I consider to be a bad practice so I'd like to give you my take on the matter and show you why those claims are wrong and how I would unit test them myself.

Scott's post: https://www.hanselman.com/blog/minima...
Damian's GitHub repo: https://github.com/DamianEdwards/Mini...

Don't forget to comment, like and subscribe :)

Social Media:
Follow me on GitHub: http://bit.ly/ChapsasGitHub
Follow me on Twitter: http://bit.ly/ChapsasTwitter
Connect on LinkedIn: http://bit.ly/ChapsasLinkedIn

Keep coding merch: https://keepcoding.shop

#csharp #dotnet #minimalapi