Skip to content

Commit b094632

Browse files
committed
Fix tests
1 parent 5cbe1a2 commit b094632

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/Aspire.Dashboard.Components.Tests/Controls/PlotlyChartTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Aspire.Dashboard.Model;
66
using Aspire.Dashboard.Otlp.Model;
77
using Aspire.Dashboard.Otlp.Model.MetricValues;
8+
using Aspire.Dashboard.Otlp.Storage;
89
using Bunit;
910
using Microsoft.Extensions.DependencyInjection;
1011
using Microsoft.Extensions.Logging.Abstractions;
@@ -26,6 +27,7 @@ public void Render_NoInstrument_NoPlotlyInvocations()
2627
Services.AddLocalization();
2728
Services.AddSingleton<IInstrumentUnitResolver, TestInstrumentUnitResolver>();
2829
Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>();
30+
Services.AddSingleton<TelemetryRepository>();
2931

3032
var model = new InstrumentViewModel();
3133

@@ -50,6 +52,7 @@ public async Task Render_HasInstrument_InitializeChartInvocation()
5052
Services.AddLocalization();
5153
Services.AddSingleton<IInstrumentUnitResolver, TestInstrumentUnitResolver>();
5254
Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>();
55+
Services.AddSingleton<TelemetryRepository>();
5356

5457
var options = new TelemetryLimitOptions();
5558
var instrument = new OtlpInstrument

0 commit comments

Comments
 (0)