Skip to main content
DependencyModules.NSubstitute package icon

DependencyModules.NSubstitute

NSubstitute mocking support for DependencyModules test integrations. Add [NSubstituteSupport] to resolve any unregistered dependency as an NSubstitute substitute, and use [Mock] on a test parameter to inject and configure it. Pair with a test framework integration such as DependencyModules.xUnit.

Total Downloads
2.1K
2,107
Published
Aug 28, 2026
Latest stable version

Install

.NET CLI
dotnet add package DependencyModules.NSubstitute --version 1.2.1
Package Manager Console
Install-Package DependencyModules.NSubstitute -Version 1.2.1
PackageReference
<PackageReference Include="DependencyModules.NSubstitute" Version="1.2.1" />

Frameworks

net10.0 net8.0

Dependencies

[1.2.1, )
[5.3.0, )
[5.3.0, )

Adoption guide

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

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.