Skip to content
Katabench
Try free

A Repository Out of Place

Easy About 10 min Katabench Pro

A concrete *Repository has settled into the core, right next to the port it implements. Move the role to the layer where it belongs; renaming it to dodge the placement rule trips the naming rule instead.

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

Infrastructure as adapters
Keep the ORM, clocks, caches, configuration and startup work out of the core as replaceable adapters.
Ports and adapters
Driving and driven adapters meet the application only through its ports.

Related katas