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. In contrast, if the LoginController tests stubbed or mocked out Auth0Client , the chain would be broken.
Let's personalize your content