O'Reilly logo
  • Roberto Orsini thinks this is interesting:

Now we can supply a constructor that has the original signature. Tests can call the constructor parameterized by mail_service, and clients can call this one. They don’t need to know that anything has changed.


Cover of Working Effectively with Legacy Code


Better than using public properties.