Created
December 20, 2016 02:05
-
-
Save jdunne/22333631a6a3726f6118d76c2f165654 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Service | |
{ | |
private readonly IAuditor _defaultAuditor = new StandardAuditor(); | |
public void DoSomething() | |
{ | |
DoSomething(_defaultAuditor); | |
} | |
public void DoSomething(IAuditor auditor) | |
{ | |
// do something… | |
auditor.RecordThatSomethingWasDone(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment