public GaugeSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _gauge = fixture.Gauges.First(x => x.Name == fixture.GaugeNameDefault); _gaugeWithGroup = fixture.Gauges.First(x => x.Name == fixture.GaugeNameWithGroup); }
public HistogramSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _histogram = fixture.Histograms.First(x => x.Name == fixture.HistogramNameDefault); _histogramWithGroup = fixture.Histograms.First(x => x.Name == fixture.HistogramNameWithGroup); }
public MeterSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _meter = fixture.Meters.First(x => x.Name == fixture.MeterNameDefault); _meterWithGroup = fixture.Meters.First(x => x.Name == fixture.MeterNameWithGroup); }
public CounterSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _counter = fixture.Counters.First(); _counter = fixture.Counters.First(x => x.Name == fixture.CounterNameDefault); }
public ApdexSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _apdex = fixture.ApdexScores.First(); _apdex = fixture.ApdexScores.First(x => x.Name == fixture.ApdexNameDefault); }
public MetricsHostTestFixture() { var builder = new WebHostBuilder().UseStartup <TStartup>(); _server = new TestServer(builder); Client = _server.CreateClient(); Context = _server.Host.Services.GetRequiredService <IMetrics>(); JsonMetricsSerializer = new MetricDataSerializer(); }
public TimerSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _timer = fixture.Timers.First(); }
public HistogramSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _histogram = fixture.Histograms.First(); }
public GaugeSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _gauge = fixture.Gauges.First(); }
public MetricsDataSerializationTests(ITestOutputHelper output, MetricProviderTestFixture fixture) { _output = output; _serializer = new MetricDataSerializer(); _metrics = fixture.DataWithOneContext; }