Esempio n. 1
0
        public void can_create_metric_reporter()
        {
            var provider = new InfluxDbReporterProvider(new InfluxDBReporterSettings(), new DefaultMetricsFilter());

            var reporter = provider.CreateMetricReporter("influx", new LoggerFactory());

            reporter.Should().NotBeNull();
        }
Esempio n. 2
0
        public void settings_are_required()
        {
            Action action = () =>
            {
                var provider = new InfluxDbReporterProvider(null);
            };

            action.ShouldThrow <ArgumentNullException>();
        }
Esempio n. 3
0
        public void filter_is_not_required()
        {
            Action action = () =>
            {
                var provider = new InfluxDbReporterProvider(new InfluxDBReporterSettings(), null);
                provider.Filter.Should().BeOfType <NoOpMetricsFilter>();
            };

            action.ShouldNotThrow();
        }
Esempio n. 4
0
        public void defaults_filter_to_no_op()
        {
            var provider = new InfluxDbReporterProvider(new InfluxDBReporterSettings());

            provider.Filter.Should().BeOfType <NoOpMetricsFilter>();
        }