public VerifyLogScope(ILoggerFactory loggerFactory = null, IDisposable wrappedDisposable = null, Func <WriteContext, bool> expectedErrors = null) { _wrappedDisposable = wrappedDisposable; _expectedErrors = expectedErrors; _sink = new LogSinkProvider(); LoggerFactory = loggerFactory ?? new LoggerFactory(); LoggerFactory.AddProvider(_sink); }
public LogSinkLogger(string categoryName, LogSinkProvider logSinkProvider) { _categoryName = categoryName; _logSinkProvider = logSinkProvider; }