mocking-inprocess-dotnet
CommunityOverride mocking strategy for .NET with in-process test doubles.
AuthorSebastienDegodez
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides an override for the mocking strategy in .NET applications, allowing for in-process test doubles to replace downstream dependencies instead of using a Microcks container.
Core Features & Use Cases
- In-process Test Doubles: Replaces downstream dependencies with in-process test doubles (FakeItEasy, NSubstitute, or Moq).
- WebApplicationFactory DI Integration: Registers the concrete double into the
WebApplicationFactoryDI. - Mock Wiring and Integration-Test Scaffold: Generates mock wiring and an integration-test scaffold without business TDD or provider contract verification.
- Library Priority: Selects the mocking library based on priority and presence in the test project.
- Use Case: When you need to mock a downstream dependency in a .NET application, this Skill can be used to generate the necessary code and configurations.
Quick Start
Use the mocking-inprocess-dotnet skill to create an in-process test double for the I{Downstream}Client interface in your test project.
Dependency Matrix
Required Modules
FakeItEasyNSubstituteMoq
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mocking-inprocess-dotnet Download link: https://github.com/SebastienDegodez/skraft-plugin/archive/main.zip#mocking-inprocess-dotnet Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.