- 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.
- 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.
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
-
Coming Up | 3m 13s
-
Positioning This Course | 2m 1s
-
Course Prerequisites | 35s
-
Frameworks and Tooling | 2m 36s
-
Demo - Introducing the Demo Scenario | 6m 25s
-
The What, Why, and What Not of Unit Testing | 3m 18s
-
Comparing Unit Tests, Integration Test, and Functional Tests | 3m 40s
-
Demo - Adding a Unit Test Project | 4m 14s
-
Demo - Writing Your First Unit Test | 7m 13s
-
Naming Guidelines for Unit Tests | 1m 25s
-
The Arrange, Act, Assert Pattern | 2m 5s
-
Comparing xUnit, NUnit, and MSTest | 2m 3s
-
Summary | 59s