Advanced ASP.NET Core: Unit Testing
Offered By: LinkedIn Learning
Course Description
Overview
Write automated tests for your personal or commercial ASP.NET Core apps. Learn how to unit test ASP.NET Core console, Web API, and MVC apps.
Syllabus
Introduction
- Unit testing ASP.NET Core apps
- What you should know
- Application testing strategies
- Why unit testing?
- Understand the MSTest framework
- Understand the NUnit framework
- Understand the xUnit framework
- Decide between the frameworks
- ASP.NET Core console project overview
- Set up the console testing project
- xUnit Theory with InlineData
- Challenge: Test add and average methods
- Solution: Test add and average methods
- xUnit Theory with MemberData
- xUnit Theory with ClassData
- ASP.NET Core web API project overview
- Set up web API testing project
- Unit testing HttpGet API endpoint
- Challenge: Test HttpGet API endpoint with id
- Solution: Test HttpGet API endpoint with id
- Unit testing HttpPost API endpoint
- Unit testing HttpDelete API endpoint
- ASP.NET Core MVC project overview
- Set up MVC testing project
- Unit testing index ActionResult
- Challenge: Unit testing details ActionResult
- Solution: Unit testing details ActionResult
- Unit testing create ActionResult
- Unit testing remove ActionResult
- Where to go next
Taught by
Ervis Trupja
Related Courses
Build Web APIs using ASP.NETMicrosoft via edX MVC Application Design using .NET Core 2.0
Microsoft via edX Getting Started with ASP.NET Core Razor Pages
Coursera Project Network via Coursera ASP NET Core,MVC,C#,Angular, ChatGPT & EF Crash Course
Udemy RESTful Web API - The Complete Guide (.NET7 API) Part 1
Udemy