MiniMock

Minimalistic approach to mocking in .NET

View on GitHub

Decision on Supporting Classes and Interfaces

Context

In the MiniMock framework, there is a need to determine the scope of support for mocking different types of members. While interfaces are the primary focus due to their flexibility and common usage in dependency injection, there is also a need to support classes to cover a broader range of use cases.

Decision

The MiniMock framework will primarily focus on supporting interfaces but will also include support for classes. This approach ensures that the framework can be used in a wide variety of scenarios, providing flexibility and comprehensive mocking capabilities.

Consequences

Positive:

Negative:


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