Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

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.

Intermediate
5h 15m
(139)

Created by Kevin Dockx

Last Updated Jan 23, 2024

Course Thumbnail
  • Course

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.

Intermediate
5h 15m
(139)

Created by Kevin Dockx

Last Updated Jan 23, 2024

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

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.

Unit Testing an ASP.NET Core Web API
Intermediate
5h 15m
(139)
Table of contents

About the author
Kevin Dockx - Pluralsight course - Unit Testing an ASP.NET Core Web API
Kevin Dockx
43 courses 4.7 author rating 8847 ratings

Kevin Dockx is a freelance solution architect (mobile/web), author & consultant, living in Antwerp (Belgium).

Get started with Pluralsight