public void DefaultPageOptions_HasDefaultPath() { // Arrange & act var options = new ElmOptions(); // Assert Assert.Equal(DefaultPath, options.Path.Value); }
private Tuple<ElmLogger, ElmStore> SetUp(Func<string, LogLevel, bool> filter = null, string name = null) { // Arrange var store = new ElmStore(); var options = new ElmOptions() { Filter = filter ?? _filter }; var provider = new ElmLoggerProvider(store, options); var logger = (ElmLogger)provider.CreateLogger(name ?? _name); return new Tuple<ElmLogger, ElmStore>(logger, store); }
public ElmLoggerProvider(ElmStore store, ElmOptions options) { if (store == null) { throw new ArgumentNullException(nameof(store)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } _store = store; _options = options; }
public ElmLoggerProvider(ElmStore store, ElmOptions options) { if (store == null) { throw new ArgumentNullException(nameof(store)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } _store = store; _options = options; }
public ElmCaptureMiddleware(RequestDelegate next, ILoggerFactory factory, IOptions <ElmOptions> options) { _next = next; _options = options.Options; _logger = factory.Create <ElmCaptureMiddleware>(); }
public ElmPageMiddleware(RequestDelegate next, IOptions <ElmOptions> options, ElmStore store) { _next = next; _options = options.Value; _store = store; }
public ElmCaptureMiddleware(RequestDelegate next, ILoggerFactory factory, IOptions<ElmOptions> options) { _next = next; _options = options.Options; _logger = factory.CreateLogger<ElmCaptureMiddleware>(); }
public ElmPageMiddleware(RequestDelegate next, IOptions<ElmOptions> options, ElmStore store) { _next = next; _options = options.Value; _store = store; }
public ElmLogger(string name, ElmOptions options, ElmStore store) { _name = name; _options = options; _store = store; }
public ElmLogger(string name, ElmOptions options, ElmStore store) { _name = name; _options = options; _store = store; }
public ElmLoggerProvider([NotNull] ElmStore store, [NotNull] ElmOptions options) { _store = store; _options = options; }
public ElmLoggerProvider([NotNull] ElmStore store, [NotNull] ElmOptions options) { _store = store; _options = options; }