ASP.NET Core MVC Testing Fundamentals

ASP.NET Core MVC is the latest evolution of .NET web programming. In this course, you'll learn how to create automated tests to cover the different parts of your ASP.NET Core MVC application to help find errors before they make it to production.
Course info
Rating
(32)
Level
Intermediate
Updated
June 19, 2017
Duration
2h 56m
Table of contents
Introduction
23m 3s
Description
Course info
Rating
(32)
Level
Intermediate
Updated
June 19, 2017
Duration
2h 56m
Description

No one likes the stress of emergencies caused by errors in code that have been released to production, especially if these errors happen early in the morning and require emergency fixes. Automated tests help check the application is working as expected, and reduces the likelihood of errors making it to the production environment. Fewer production errors mean happier end users, development teams, and business owners. In this course, ASP.NET Core MVC Testing Fundamentals, you'll learn how to create automated tests for your ASP.NET Core MVC application, including model, controller, and automated UI tests. First, you'll dive into getting started with xUnit.net, and how to specifically test your model. Next, you'll explore how to isolate parts of your code base by using mock objects and the Moq library for .NET Core. Finally, you'll cover how to automate the browser to create functional UI tests. By the end of this course, you'll have the knowledge to create automated unit, integration, and UI tests for your ASP.NET Core MVC application. Additionally, you'll know how to execute these tests to verify the correctness of your application, and help ensure errors do not make it to production.

About the author
About the author

With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.

More from the author
Testing Automation: The Big Picture
Beginner
1h 6m
8 Aug 2017
More courses by Jason Roberts
Transcript
Transcript

Hi everyone, my name's Jason Roberts , welcome to my course, ASP.NET Core MVC Testing Fundamentals.

I'm a Microsoft .NET MVP, freelance developer and author.

In this course, we're going to learn how to write automated tests at different levels for your ASP.NET Core application; including tests for models and controllers, integration tests and automated UI tests.

Some of the major topics that we will cover include:

  • How to get started with xUnit.net
  • How to test your model and controllers
  • How to isolate classes being tested with mock objects
  • How to perform in-memory integration tests that also use in-memory Entity Framework Core databases
  • and how to automated the browser to create functional UI tests

By the end of this course you'll understand how to ensure your ASP.NET Core application is working as expected by creating a suite of automated tests at different levels.

Before beginning the course you should be familiar with writing basic C# code and have a basic understanding of ASP.NET MVC.

I hope you'll join me on this journey with the ASP.NET Core MVC Testing Fundamentals course, at Pluralsight.