private static ConsoleLogMuxer CreateMuxer(ConsoleLogGlobalSettings settings) { var consoleFeaturesDetector = new ConsoleFeaturesDetector(); var consoleWriterFactory = new ConsoleWriterFactory(consoleFeaturesDetector, settings.OutputBufferSize); var consoleWriter = consoleWriterFactory.CreateWriter(); var eventsBatcher = new EventsBatcher(consoleFeaturesDetector); var eventsWriter = new EventsWriter(eventsBatcher, consoleWriter, consoleFeaturesDetector); return(new ConsoleLogMuxer(eventsWriter, settings.EventsQueueCapacity, settings.EventsTemporaryBufferCapacity)); }
public void TestSetup() { batcher = new EventsBatcher(CreateDetector(true)); batcherWithRedirectedOutput = new EventsBatcher(CreateDetector(false)); }