Skip to main content
DependencyModules.Moq package icon

DependencyModules.Moq

Moq mocking support for DependencyModules test integrations. Add [MoqSupport], then take a Mock<T> test parameter to get the mock itself, or mark a parameter [Mock] to get the mocked instance. Either way the service under test is built against the same mock. Pair with a test framework integration such as DependencyModules.xUnit.

Total Downloads
1.8K
1,767
Published
Aug 29, 2026
Latest stable version

Install

.NET CLI
dotnet add package DependencyModules.Moq --version 1.2.3-preview.1
Package Manager Console
Install-Package DependencyModules.Moq -Version 1.2.3-preview.1
PackageReference
<PackageReference Include="DependencyModules.Moq" Version="1.2.3-preview.1" />

Frameworks

net10.0 net8.0

Dependencies

[1.2.3-preview.1, )
Moq
net10.0
[4.20.72, )
[1.2.3-preview.1, )
Moq
net8.0
[4.20.72, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.