Testing Without Mocks: A Pattern Language
James Shore
FEBRUARY 16, 2023
To avoid manually constructing the entire dependency chain, use Parameterless Instantiation with Zero-Impact Instantiation. For example, an immutable Address class should be constructed with its street, city, and so forth. If convenient in your programming language, return multiple optional values as well.
Let's personalize your content