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.

From

Cover of Working Effectively with Legacy Code

Note

Better than using public properties.