Test classes with dependency injection properly
Set up DI testing for:
Class under test: ${{CLASS_CODE}}
Dependencies: ${{DEPENDENCIES}}
DI framework: ${{DI_FRAMEWORK}}
Create:
- Test container configuration
- Mock injection setup
- Scope management
- Lifecycle testing
- Constructor injection tests
- Property injection tests
- Method injection testsOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{CLASS_CODE][{DEPENDENCIES][{DI_FRAMEWORK]