This repo contains code to study the notion of "dependency injection" from the ground up, without any framework.
We have a "pseudo system", which allows us to create a fisherman. We can ask the fisherman to get some fish for us. To do that, he will need some equipment: boots, a boat, bait and of course a fishing rod. It's a wonderful world: whenever the fisherman uses his fishing rod, he will get fresh fish.
We have a unit test that validates the behavior of the system. Let's fix the problem!
- Fork the repo
- Open the project in the IDE
- Run the test and see it fail
- Read the code
- Fix the code to make the test pass
- Open a pull request
- Review the solutions
- Introduce the notion of dependency injection