Advanced ASP.NET Core: Unit Testing

Advanced ASP.NET Core: Unit Testing

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 54m | 421 MB

No developer wants to turn in buggy code. Unit testing is a highly efficient way to ensure that everything in your app is working by design before it’s launched into production. In this course, learn how to write automated tests for your personal or commercial ASP.NET Core apps. Instructor Ervis Trupja details how to unit test ASP.NET Core console, Web API, and MVC apps. Ervis begins by providing a general overview of application testing strategies, as well as how to determine which unit testing framework is right for you. Then, he steps through how to set up and test ASP.NET Core console, Web API, and MVC apps, providing challenges along the way that allow you to put your new skills to the test.

Table of Contents

1 Unit testing ASP.NET Core apps
2 What you should know
3 Application testing strategies
4 Why unit testing
5 Understand the MSTest framework
6 Understand the NUnit framework
7 Understand the xUnit framework
8 Decide between the frameworks
9 ASP.NET Core console project overview
10 Set up the console testing project
11 xUnit Theory with InlineData
12 Challenge Test add and average methods
13 Solution Test add and average methods
14 xUnit Theory with MemberData
15 xUnit Theory with ClassData
16 ASP.NET Core web API project overview
17 Set up web API testing project
18 Unit testing HttpGet API endpoint
19 Challenge Test HttpGet API endpoint with id
20 Solution Test HttpGet API endpoint with id
21 Unit testing HttpPost API endpoint
22 Unit testing HttpDelete API endpoint
23 ASP.NET Core MVC project overview
24 Set up MVC testing project
25 Unit testing index ActionResult
26 Challenge Unit testing details ActionResult
27 Solution Unit testing details ActionResult
28 Unit testing create ActionResult
29 Unit testing remove ActionResult
30 Where to go next