Simple play icon Course
Skills

Unit Testing an ASP.NET Core MVC Web Application

by Kevin Dockx

Unit testing your ASP.NET Core MVC web application helps with improving its reliability. This course will teach you the ins and outs of unit testing with xUnit in detail.

What you'll learn

Unit testing improves the reliability of your application. In this course, Unit Testing an ASP.NET Core MVC Web Application, you’ll learn the ins and outs of unit testing with xUnit.net.

First, you’ll explore the Arrange, Act and Assert pattern by covering core unit testing scenarios like asserting on strings, collections and exceptions. Next, you’ll discover different approaches to set up your test context, work with data-driven tests and how to isolate tests.

Finally, you’ll learn different approaches to testing MVC-specific concerns like testing controllers, middleware and filters. At the end of the course you’ll learn how to integrate testing in your workflow and you’ll have the skills and knowledge needed to improve your ASP.NET Core MVC application reliability with unit testing.

Table of contents

Course Overview
1min

About the author

Kevin Dockx is a freelance solution architect, author & consultant, living in Antwerp (Belgium). He's been working in the IT sector for more than 20 years, and his main focus these days is backend (API) architecture & security for web and Azure cloud applications, using .NET. He regularly speak at (inter)national conferences, he's a Microsoft MVP and has been for more than 10 years, and he's a keen proponent of open-source software. In his free time, he enjoys a glass of wine, travelling an... more

Ready to upskill? Get started