public void can_create_metric_reporter() { var provider = new InfluxDbReporterProvider(new InfluxDBReporterSettings(), new DefaultMetricsFilter()); var reporter = provider.CreateMetricReporter("influx", new LoggerFactory()); reporter.Should().NotBeNull(); }
public void settings_are_required() { Action action = () => { var provider = new InfluxDbReporterProvider(null); }; action.ShouldThrow <ArgumentNullException>(); }
public void filter_is_not_required() { Action action = () => { var provider = new InfluxDbReporterProvider(new InfluxDBReporterSettings(), null); provider.Filter.Should().BeOfType <NoOpMetricsFilter>(); }; action.ShouldNotThrow(); }
public void defaults_filter_to_no_op() { var provider = new InfluxDbReporterProvider(new InfluxDBReporterSettings()); provider.Filter.Should().BeOfType <NoOpMetricsFilter>(); }