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 via the
AddScreenplayextension method - You may create a self-contained instance of
Screenplayvia the staticScreenplay.Createhelper method- Use this is you wish to integrate with an app or library which does not use DI itself
- Test integrations have their own ways to integrate with DI