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