Table of Contents

Dependency injection

The Screenplay design pattern is fundamentally compatible with and based upon dependency injection, aka DI. You may add Screenplay to an existing container if you wish, via the AddScreenplay extension method. Alternatively you may create an instance of Screenplay which uses its own self-contained DI container with the static Screenplay.Create helper method.

Learn more about DI in Screenplay