When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

Unit Testing an ASP.NET Core Web API
Unit testing your ASP.NET Core Web API helps with improving its reliability. This course will teach you the ins and outs of unit testing with xUnit in detail.

This Course Includes
pluralsight
5 (106 reviews )
5 hour 15 minutes
english
Online - Self Paced
core courses
pluralsight
About Unit Testing an ASP.NET Core Web API
Unit testing improves the reliability of your application. In this course, Unit Testing in ASP.NET Core Web API, 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 API-specific concerns like testing controllers, middleware, and filters. At the end of the course, you’ll learn how to integrate testing in your workflow.
When you’re finished with this course, you’ll have the skills and knowledge needed to improve your application reliability with unit testing.
What You Will Learn?
- Course Overview : 1min.
- Introduction to Unit Testing : 39mins.
- Tackling Basic Unit Testing Scenarios : 59mins.
- Setting Up Tests and Controlling Test Execution : 34mins.
- Working with Data-driven Tests : 24mins.
- Isolating Unit Tests with ASP.NET Core Techniques and Mocking : 46mins.
- Unit Testing ASP.NET Core API Controllers : 64mins.
- Unit Testing ASP.NET Core Middleware, Filters and Service Registrations : 16mins.
- Integrating Unit Tests In Your Development and Release Flows : 27mins.