Green! Adding the HttpClient
If you want to state to Single Responsability Principle (SRP), the main class cannot execute the HTTP Requests
Green! Moving API Requests to classes
This design move is based on experience. Sorry, TDD cannot help you with that. We'll see the benefits later.
Green! Playing with the HttpClient
There are some temporal hard-coded dependencies that need to be removed
Red! Need to refactor the collaboration between classes.
Currently MyApi class is a composition of Request and Response. I would like to explore other collaboration workflow.
Red! Working in the refactoring of the collaboration between classes.
This commit is to provide some traceability of what I am doing.
Green! Check the way I like to make request
Green! Better structured classes collaboration
We are not far from where we were, but the design changes will allow us to sleep better ;)