Cover image for Pragmatic Test-Driven Development in C# and .NET

Pragmatic Test-Driven Development in C# and .NET

Write loosely coupled, documented, and high-quality code with DDD using familiar tools and libraries

Adam Tibi

Created by Adam Tibi

Explore the practical side of test-driven development in C# and .NET by building real applications with familiar frameworks. You will learn how to write clean, maintainable code using TDD, domain-driven design, and SOLID principles. Gain the confidence to introduce and advocate for these practices in your team.

Packt | Sep 2022 | 372 min

What You Will Learn

You will start by writing unit tests with xUnit and using dependency injection. As you progress, you will implement test doubles with NSubstitute, work with real databases, and integrate TDD with ASP.NET Core. The focus is on hands-on coding and applying best practices to real-world scenarios, preparing you to lead TDD adoption.

Key Features

  • Build a complete web app using TDD, ASP.NET Core, and Entity Framework
  • Apply domain-driven design and SOLID principles for better code architecture
  • Develop a plan to introduce TDD and unit testing in your organization

Target Audience

Ideal for mid to senior-level .NET developers who are comfortable with C# and object-oriented programming but new to TDD or unit testing. If you want to build robust applications from scratch or introduce modern testing practices to your team, you will find practical guidance and actionable steps here.

Related courses