protected override void ExecuteExample() { var obj = new ClassThatUsesLogger(new Logger()); obj.UseLogger(); obj.UseLogger(); obj = new ClassThatUsesLogger(new NullLogger()); obj.UseLogger(); obj.UseLogger(); }