public static Consumer GetConsumerInstance() { var magicService = new MagicService(); var loggingDecorator = new LoggingDecorator(magicService); var consumer = new Consumer(loggingDecorator); return consumer; } }
public void StepThrough() { var consumer = ConsumerFactory.GetConsumerInstance(); consumer.SomeAction(); }