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

            obj = new ClassThatUsesLogger(new NullLogger());
            obj.UseLogger();
            obj.UseLogger();
        }
Пример #2
0
        protected override void ExecuteExample()
        {
            var obj = new ClassThatUsesLogger(new Logger());

            obj.UseLogger();
            obj.UseLogger();

            obj = new ClassThatUsesLogger(new NullLogger());
            obj.UseLogger();
            obj.UseLogger();
        }