Skip to Content
C# and .NET Core Test-Driven Development
book

C# and .NET Core Test-Driven Development

by Ayobami Adewole
May 2018
Intermediate to advanced content levelIntermediate to advanced
300 pages
7h 35m
English
Packt Publishing
Content preview from C# and .NET Core Test-Driven Development

Tight coupling

Coupling is the extent to which objects depend on or are closely related to one another. To explain this further, when a LoanProcessor class is tightly coupled to EligibilityChecker, changing the latter can affect the behavior or modify the state of the former.

The majority of untestable code is usually a result of inherent dependencies scattered in different portions of the codes, usually through the use of concrete implementations of dependencies causing a mixing of concerns that otherwise should be separated across application boundaries.

Unit testing code with tightly coupled dependencies will lead to testing the different objects that are tightly coupled. Dependencies that should ideally be easy to mock when injected into ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Design Patterns with C# and .NET Core

Hands-On Design Patterns with C# and .NET Core

Gaurav Aroraa, Jeffrey Chilberto
.NET Core in Action

.NET Core in Action

Dustin Metzgar

Publisher Resources

ISBN: 9781788292481Supplemental Content