thomaspoignant / api-scenario

API-scenario is a command-line tool that allows you to execute easily a scenario to test your APIs.
https://github.com/thomaspoignant/api-scenario#api-scenario
The Unlicense
17 stars 3 forks source link

Refactor to use a controller model with autowiring #27

Closed thomaspoignant closed 4 years ago

thomaspoignant commented 4 years ago

This PR refactor the code to have a design with controllers, it is easier to understand what the code does and it is also easier to mock for testing.

It also introduces wire to manage the automatic inversion of control.

thomaspoignant commented 4 years ago

@aftouh just to let you know, I have done a pretty big refactoring here to make the project easier to understand and easier to mock for testing.