MiniMock

Minimalistic approach to mocking in .NET

View on GitHub

Decision on How to Create Mocks

Context

In the MiniMock framework, there is a need to establish a standardized approach for creating mocks. A consistent and efficient method for creating mocks will enhance the usability and maintainability of the framework.

Decision

Mocks will be created using a mock factory. The mock factory will provide a centralized and consistent way to create and configure mocks, ensuring that all mocks are created following the same process and standards. The constructors of the mock object will remain accessible but should only be used for limited purposes.

Consequences

Positive:

Negative:


More ADRs can be found in the docs/ADR directory.