GabDesilets / beer-me

0 stars 0 forks source link

Refactor code to simplify tests #11

Open magignac opened 8 years ago

magignac commented 8 years ago

Some tests are very complicated to write and maintain. It shows that the code being tested could be improved.

For starters, the repositories should handle queries themselves and be passed directly to the different services. This will reduce the need to mock objects and give the flexibility needed to apply changes if needed.