Lightlines
By dotnet

migrate-static-to-wrapper

dotnet2.4k installs

Make C# static dependencies easy to fake.

What it does

Replaces scoped static dependency calls with existing abstractions so project code can be tested with fakes.

When to use it

Use when migrating static calls to an existing wrapper or built-in abstraction, including updating injection and affected tests.

How to use it

Give it a static-call migration in your project; it replaces calls with an existing abstraction and updates injection and affected tests.

What you provide

  • An existing project

Latest review

What you need · 1

Requires the dotnet CLI to build the affected production project and run the affected test project when tests exist or change.


Access · 0

No additional actions listed.