Use injection to resources class
Merge pull request #222 from danielsoro/refactor-to-use-injections

Refactor to use injections