Quality Assurance & Testing

Generate Testability Wrappers

DO NOT USE when the target already consumes an injected interface or built-in abstraction such as IFileSystem or TimeProvider, even if the request says "generate a wrapper"; no new wrapper is needed. Use only when C# source calls an ambient/static dependency and no injectable seam exists: first-time TimeProvider, IHttpClientFactory, or System.IO.Abstractions adoption; minimal Environment/Console/Process wrappers; IProcessRunner; DI registration; or an ambient seam that preserves a static API. Exclude static detection (detect-static-dependencies), migration to an existing/registered abstraction (migrate-static-to-wrapper), one blocked behavior plus deterministic tests (testability-obstacle), and general interface design.

Publisher / source
dotnet/skills (found on skills.sh)
Upstream record
dotnet/skills
Version
Version 1
Published
Publication review
Approved for publication · recorded passed scan 2026-11-01
Content fingerprint
58aac0affca5c0a56dab9e8e751f52ac4014533150355b734d6b5597ac8acec1