Legacy code refactoring & testing kata adapted from https://github.com/sandromancuso/trip-service-kata
- We want to refactor the class
TripService
. - We cannot change existing code if not convered by tests.
- Exception: Automated refactorings via IDE are allowed without tests.
- In the class
TripServiceTest
, test theTripService
only (not its collaborators).
master
: start kata from heresolution
: my solution