static void CompositionRoot() { // Instead of calling Processor.ReadFile directly we call the wrapper var processorLogger = new ProcessorLogger(new Processor(), new Log()); string result = processorLogger.ReadFile("file.csv"); }