public ILogger GetDefaultTestLogger() { MoqRepository = new Moq.MockRepository(Moq.MockBehavior.Default); SinkMock = MoqRepository.Create<Sink>(); SinkMock.CallBase = true; var logger = new DiagnosticLogger(); var config = logger.GetConfigurationClone(); config.Sinks.Clear(); config.Sinks.Add(SinkMock.Object); logger.ApplyConfiguration(config); return logger; }