Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Advanced ASP.NET Core: Unit Testing

via LinkedIn Learning

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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
1. Get Started with Unit Testing
  • Application testing strategies
  • Why unit testing?
  • Understand the MSTest framework
  • Understand the NUnit framework
  • Understand the xUnit framework
  • Decide between the frameworks
2. Console Applications
  • 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
3. Web API Applications
  • 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
4. MVC Applications
  • 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
Conclusion
  • Where to go next

Taught by

Ervis Trupja

Reviews

4.5 rating at LinkedIn Learning based on 221 ratings

Start your review of Advanced ASP.NET Core: Unit Testing

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.