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

Provider Logo

ASP.NET Core: Test-Driven Development

via LinkedIn Learning

Overview

Get practical, hands-on experience implementing test-driven development of ASP.NET Core applications.

Get practical, hands-on experience implementing test-driven development of ASP.NET Core applications. Apps developed with a solid testing strategy are cleaner, more flexible, and easier to change on the fly. This course provides developers with the baseline knowledge of TDD so they can iterate through both new and existing code. Instructor Richard Rout introduces some helpful tools for ASP.NET Core testing, including Visual Studio, ReSharper, and the xUnit and Mock frameworks. Then he covers concepts such as dependency injection and version control, and shows how to set up a web app for testing. Finally, he walks through the red-green-refactor test cycle, including writing failing and passing tests, running tests, and refactoring code to improve quality.

Note: Examples in this course were developed using C# ASP.NET Core, but the concepts apply to all .NET Core applications.

Syllabus

Introduction
  • Welcome
  • What you should know
  • Using the excercise files
1. Get Started with TDD in ASP.NET Core
  • TDD and tools
  • Dependency injection and IoC
  • Configure the app for testability
2. Write Tested Code
  • Test base case
  • Test N+1 case
  • Refactor code and tests
  • Complete test cases
  • Finish and run the app
3. Test Changes in Untested Code
  • TDD in untested code
  • Make untestable code testable
  • Confidently change your code, part 1
  • Confidently change your code, part 2
  • Refactor existing code
Conclusion
  • Next steps

Taught by

Richard Rout

Related Courses

Reviews

0.0 rating, based on 0 reviews

Start your review of ASP.NET Core: Test-Driven Development

Never stop learning Never Stop Learning!

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

Sign up for free