Knowlify
CatalogStart free

Test-Driven Development in .NET Core: The Handbook

Learn Test-Driven Development in .NET Core using the red-green-refactor cycle to build enterprise-grade, testable applications. Perfect for .NET developers seeking to write robust code with xUnit, SOLID principles, and real-world projects.

4.6
(340 ratings)
4,843students enrolled
Trevoir Williams

Created by

Last updated · 4/26/2026
Test-Driven Development in .NET Core: The Handbook
Price
$29.00
This course includes
1 sections
Lifetime access
Access on mobile and desktop
Outcomes

What you'll learn— skills you'll gain

  • Write unit tests using xUnit before implementing production code
  • Apply the red-green-refactor cycle to drive feature development
  • Use mocking frameworks to isolate code under test and verify behavior
  • Design testable, modular code that follows SOLID principles
  • Achieve high code coverage and confidence when refactoring
  • Debug failing tests and diagnose root causes using breakpoints and test insights
  • Refactor code safely using tests as a regression safety net
  • Build real-world features (room availability checks, booking requests, result flags) with test-driven techniques
Curriculum

Course content

1 section · 41 lectures
Framework Compatibility: .NET 5 to .NET 7 Migration Guide

VIDEO file: 1_1_.net7.mp4

Test-Driven Development Philosophy and Course Overview

VIDEO file: 1_introduction.mp4

2_create_project.mp4

VIDEO file: 2_create_project.mp4

3_create_first_test.mp4

VIDEO file: 3_create_first_test.mp4

4_cmake_green_test.mp4

VIDEO file: 4_cmake_green_test.mp4

5_first_refactor.mp4

VIDEO file: 5_first_refactor.mp4

6_flesh_out_requirements.mp4

VIDEO file: 6_flesh_out_requirements.mp4

7_null_exception_tests.mp4

VIDEO file: 7_null_exception_tests.mp4

8_seyup_service.mp4

VIDEO file: 8_seyup_service.mp4

9_test_booking_save.mp4

VIDEO file: 9_test_booking_save.mp4

Implementing the Save Method and Reducing Code Duplication

VIDEO file: 10_implement_save_method.mp4

Testing Room Availability Before Booking

VIDEO file: 11_test_no_available_rooms.mp4

Implementing Availability Validation and Debugging Tests

VIDEO file: 12_implement_no_available_rooms.mp4

Adding Room ID to Booking Records

VIDEO file: 13_Add_Id_Ro_Booking.mp4

Returning Success Flags and Introduction to Data-Driven Tests

VIDEO file: 14_Add_Result_Flag.mp4

15_add_booking_id.mp4

VIDEO file: 15_add_booking_id.mp4

16_section_close.mp4

VIDEO file: 16_section_close.mp4

17_setup_dal.mp4

VIDEO file: 17_setup_dal.mp4

18_test_available_rooms.mp4

VIDEO file: 18_test_available_rooms.mp4

19_implement_available_rooms.mp4

VIDEO file: 19_implement_available_rooms.mp4

20_test_implement_save.mp4

VIDEO file: 20_test_implement_save.mp4

21_section_review.mp4

VIDEO file: 21_section_review.mp4

22_unit_testing_application.mp4

VIDEO file: 22_unit_testing_application.mp4

23_setup_datasource.mp4

VIDEO file: 23_setup_datasource.mp4

24_api_unit_tests.mp4

VIDEO file: 24_api_unit_tests.mp4

25_implement_api.mp4

VIDEO file: 25_implement_api.mp4

26_test_api_manually.mp4

VIDEO file: 26_test_api_manually.mp4

27_conclusion.mp4

VIDEO file: 27_conclusion.mp4

28_overview.mp4

VIDEO file: 28_overview.mp4

29_sign_up_for_github.mp4

VIDEO file: 29_sign_up_for_github.mp4

30_add_project_to_github.mp4

VIDEO file: 30_add_project_to_github.mp4

31_protect_master.mp4

VIDEO file: 31_protect_master.mp4

32_branching.mp4

VIDEO file: 32_branching.mp4

33_protected_build.mp4

VIDEO file: 33_protected_build.mp4

34_finalize.mp4

VIDEO file: 34_finalize.mp4

35_section_review.mp4

VIDEO file: 35_section_review.mp4

introduction (2).pptx

PDF file: introduction (2).pptx

introduction.pptx

PDF file: introduction.pptx

Test Driven Development in ASP.NET Core - The Handbook _ Udemy.pdf

PDF file: Test Driven Development in ASP.NET Core - The Handbook _ Udemy.pdf

Test Driven Development in.pptx

PDF file: Test Driven Development in.pptx

Quiz: Test Driven Development in .NET Core - The Handbook
Overview

About this course

Test-Driven Development in .NET Core: The Handbook is a comprehensive guide to building enterprise-grade applications using the red-green-refactor cycle. Taught by software engineer and lecturer Trevor Williams, this course walks you through the complete TDD process—from writing unit tests before implementation code, to refactoring with confidence as requirements evolve. You'll build a real-world room booking application from the ground up, learning how to use xUnit, mock third-party libraries, and apply SOLID principles from day one. The course covers practical strategies for writing testable, modular code that reduces bugs, speeds up feedback loops, and scales with your application. Whether you're using .NET 5, 6, or 7, you'll learn techniques that remain backward compatible and forward compatible across framework versions. By the end, you'll understand not just how to write unit tests, but why TDD is essential for professional software development and how to practice it with maximum efficiency.

Taught by

Meet your instructor

Certified Trainer • Top-Rated Instructor • 500,000+ Students

I’m a Jamaican-born software and systems engineer with a mission to help developers turn ambition into real-world impact. I hold a Master’s degree in Computer Science (Software Development) and Microsoft Azure certifications, and I’ve led projects across consulting, enterprise engineering, database design, cloud, and server administration, as well as lecturing. What I bring to your learning - Real production experience building with .NET / ASP.NET Core, EF Core, Web APIs, microservices, and messaging. - Serious data chops across SQL Server, PostgreSQL, and data modeling—from schema design to performance and migrations. - Cloud fluency with Microsoft Azure (containers, CI/CD, Key Vault, App Services, Functions), plus configuration, security, and cost-aware deployments. - Teaching that sticks: clear explanations, modern patterns, hands-on labs, and end-to-end build-outs so you can ship with confidence. My teaching style - Clarity over jargon: I unpack complex ideas into practical, memorable steps. - Do > watch: You’ll build real features—APIs, data layers, tests, and cloud pipelines. - Industry alignment: Secure coding, versioning, documentation, observability, and DevOps are baked in. - Human and encouraging: I’m a musician, too—so I bring rhythm, creativity, and disciplined practice to every course. Who my courses are for New and rising developers who want job-ready projects and a strong mental model of modern .NET. Working engineers who need to upgrade to cloud-native, microservices, or production-grade patterns. Teams that want clear, consistent practices across architecture, data, testing, and deployment. Join me to learn the skills that move careers forward—one carefully designed, real-world lesson at a time. Let’s build something great together.