Skip to content
RED SAG Skills
medium10 pts · first answer countstest-automationunit-testingtest-doubles

Code that is hard to test

A ReportService creates new SmtpMailer() inside its constructor, so unit tests try to send real emails. What change makes it testable?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions