37 references to s_testTime
Aspire.Dashboard.Tests (37)
TelemetryRepositoryTests\MetricsTests.cs (37)
42CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1)),
43CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(2)),
44CreateSumMetric(metricName: "test2", startTime: s_testTime.AddMinutes(1)),
52CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1))
125CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: metricAttributes)
241CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: metricAttributes)
308var start = s_testTime.AddMinutes(1);
334CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), exemplars: new List<Exemplar> { CreateExemplar(startTime: s_testTime.AddMinutes(1), value: 2, attributes: [KeyValuePair.Create("key1", "value1")]) }),
335CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(2)),
336CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value1")]),
337CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value2")]),
338CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value1"), KeyValuePair.Create("key2", "value1")]),
339CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value1"), KeyValuePair.Create("key2", "")])
362StartTime = s_testTime.AddMinutes(1),
363EndTime = s_testTime.AddMinutes(1.5),
392var instrument = applications.Single().GetInstrument("test-meter", "test", s_testTime.AddMinutes(1), s_testTime.AddMinutes(1.5));
442CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), value: 1),
443CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(2), value: 2),
444CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(3), value: 3),
445CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(4), value: 4),
446CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(5), value: 5),
483Assert.Equal(s_testTime.AddMinutes(2), m.Start);
484Assert.Equal(s_testTime.AddMinutes(3), m.End);
489Assert.Equal(s_testTime.AddMinutes(3), m.Start);
490Assert.Equal(s_testTime.AddMinutes(4), m.End);
495Assert.Equal(s_testTime.AddMinutes(4), m.Start);
496Assert.Equal(s_testTime.AddMinutes(5), m.End);
521CreateSumMetric(metricName: "test1", value: 1, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-1")]),
522CreateSumMetric(metricName: "test1", value: 2, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-2")])
537CreateSumMetric(metricName: "test1", value: 3, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-3")]),
538CreateSumMetric(metricName: "test2", value: 4, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-4")])
553CreateSumMetric(metricName: "test1", value: 5, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-5")]),
554CreateSumMetric(metricName: "test3", value: 6, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-6")])
587StartTime = s_testTime,
588EndTime = s_testTime.AddMinutes(20)