Implemented interface member:
property
this
Microsoft.Extensions.Localization.IStringLocalizer.this[System.String]
12 references to
Aspire.Dashboard.Components.Tests (12)
Controls\ApplicationSummaryTests.cs (11)
140Assert.Equal(loc[nameof(ResourceStrings.HomeLiveActivity)], cut.Find("#home-activity-title").TextContent); 141Assert.Equal(loc[nameof(ResourceStrings.HomeActivityWindow)], cut.Find(".home-activity-window").TextContent); 142cut.WaitForAssertion(() => Assert.Equal(loc[nameof(ResourceStrings.HomeActivityWaiting)], cut.Find(".home-chart-empty").TextContent)); 145.Select(key => $"0 {loc[key]}"), 149.Select(key => loc[key].Value), 151Assert.Equal(loc[nameof(ResourceStrings.HomeActivityChartLabel)], cut.Find(".home-chart-svg").GetAttribute("aria-label")); 152Assert.Equal(loc[nameof(ResourceStrings.HomeActivityWaiting)], cut.Find(".home-chart-empty").TextContent); 154new[] { nameof(ResourceStrings.HomeActivityWindowStart), nameof(ResourceStrings.HomeActivityWindowEnd) }.Select(key => loc[key].Value), 178Assert.Equal(loc[nameof(ResourceStrings.HomeInsightsLabel)], cut.Find(".home-insights").GetAttribute("aria-label")); 181.Select(key => loc[key].Value), 185.Select(key => loc[key].Value),
Model\DashboardDialogServiceTests.cs (1)
39Assert.Equal(loc[nameof(Aspire.Dashboard.Resources.Dialogs.OpenSpanDialogCancelButtonText)].Value, instance.Options.Footer.PrimaryAction.Label);