Book

Pragmatic Test-Driven Development in C# and .NET

This book takes you from little to no TDD or unit testing knowledge to implementing real-life projects based on .NET frameworks, such as ASP.NET Core and Entity Framework. You’ll also get to grips with software practices like DDD and SOLID along with learning how to champion the transformation in your team and educate the business on the benefits.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

12h24m

Language

English

About Book

Who Is This Book For?

This book is for mid to senior-level .NET developers looking to use the potential of TDD to develop high-quality software. Basic knowledge of OOP and C# programming concepts is assumed but no knowledge of TDD or unit testing is expected. The book provides in-depth coverage of all the concepts of TDD and unit testing, making it an excellent guide for developers who want to build a TDD-based application from scratch or planning to introduce unit testing into their organization.

Book content

chapters 12h24m total length

Writing Your First TDD Implementation

Understanding Dependency Injection by Example

Getting Started with Unit Testing

Real Unit Testing with Test Doubles

Test-Driven Development Explained

The FIRSTHAND Guidelines of TDD

A Pragmatic View of Domain-Driven Design

Designing an Appointment Booking App

Building an Appointment Booking App with Entity Framework and Relational DB

Building an App with Repositories and Document DB

Implementing Continuous Integration with GitHub Actions

Dealing with Brownfield Projects

The Intricacies of Rolling Out TDD

Appendix 1 - Commonly Used Libraries with Unit Tests

Appendix 2 - Advanced Mocking Scenarios

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required