zucler / Parker

Find a carpark that suits you
Other
0 stars 0 forks source link

Refactor unit tests to not rely on hardcoded expected results #14

Closed zucler closed 7 years ago

zucler commented 7 years ago

Background: Generating hardcoded set of expected results is not a long-term solution. Instead, we should have a generic validation logic.

Requirements: Refactor existing unit tests code to validate each field / attribute of the parking rates object generically based on the data type expected (e.g. string, integer, double) and/or mandatory vs optional value assigned to a field..