The code for Chapter 7 – Apples and Oranges has been checked into GitHub.
CH 7 – Apples and Oranges
Here, comparing Francs and Dollars (within the Equals) method was a curiousity that was on the task list.
It was an objection – so a test was created, which failed.
This meant getting to green – through a Java mechanism, not a domain (finance) mechanism.
A bit uncomfortable as a solution – but not enough of a motivation to refactor the design just yet – so it is not perfect, but it will suffice for now.
Feedback is welcome.