Skip to content
Katabench
Try free

Fakes Don't Ship

Easy About 15 min Katabench Pro

A test stub lives in the core and the checkout quietly falls back to it when nobody injects a gateway. Evict the stub to the testing namespace and make the dependency mandatory; a convenient default is a production code path.

The full brief is part of Katabench Pro

Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Config Is Infrastructure, which is free.

How it is graded

You work across multiple files, and architecture rules turn the design boundaries into executable feedback.

C# architecture exercises →

What it practices

Dependency injection
Ask for collaborators through constructors instead of newing them up or locating them.
Test doubles
Use fakes, stubs and recording collaborators to isolate and observe a unit.

Related katas