Dotnet No Ambient Static State

Use when reaching for a static mutable field, a singleton .Instance, or an ambient static read like DateTime.Now: inject it instead — that's what makes it testable, and static state makes test order matter.

techmefr Updated

File contents

techmefr/mentis commit f27f5933b8

Frequently asked questions

npx get-skill add techmefr/dotnet-no-ambient-static-state