Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Dependency Injection and Delegate Object Creation to Simplify Testing #65

Open
bchanez opened this issue Nov 9, 2024 · 0 comments
Assignees
Labels
P1-urgent Urgent Priority - Needs immediate attention

Comments

@bchanez
Copy link
Owner

bchanez commented Nov 9, 2024

Currently, object creation is managed internally within classes, making the code harder to test, maintain, and extend. To simplify unit testing and improve the flexibility of our architecture, we should implement dependency injection (DI) and delegate object creation to external components (such as factories or DI frameworks).

By refactoring the code to use DI, we can decouple classes from their dependencies, making them more testable and easier to maintain. This will allow us to inject mocks and stubs in unit tests, simplifying the testing process and improving the overall quality of the codebase.

@bchanez bchanez self-assigned this Nov 9, 2024
@bchanez bchanez added P2-important Normal Priority - Important, but not as urgent P1-urgent Urgent Priority - Needs immediate attention and removed P2-important Normal Priority - Important, but not as urgent labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1-urgent Urgent Priority - Needs immediate attention
Projects
None yet
Development

No branches or pull requests

1 participant