//Violates L and D //Both because we're not using and interface public void DoSomethingElseAgain(UpdateUserRecords update) { update.DoSomeUpdates(); var emailDependency = new EmailDependency(); emailDependency.SendMail(); }
public void DoSomethingElse() { //also trapping a dependency here //seems to be doing something unrelated to sending emails var update = new UpdateUserRecords(); update.DoSomeUpdates(); }