30 references to TextVisualizerDialog
Aspire.Dashboard (2)
Components\Controls\StructuredLogActions.razor.cs (1)
57await TextVisualizerDialog.OpenDialogAsync(ViewportInformation, DialogService, header, LogEntry.Message);
Components\Layout\MainLayout.razor.cs (1)
284await TextVisualizerDialog.OpenDialogAsync(ViewportInformation, DialogService, valueDescription, value);
Aspire.Dashboard.Components.Tests (28)
Controls\TextVisualizerDialogTests.cs (28)
43await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawJson, string.Empty), []); 45var instance = cut.FindComponent<TextVisualizerDialog>().Instance; 48Assert.Equal(TextVisualizerDialog.JsonFormat, instance.FormatKind); 49Assert.Equal([TextVisualizerDialog.JsonFormat, TextVisualizerDialog.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet()); 65await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty), []); 67var instance = cut.FindComponent<TextVisualizerDialog>().Instance; 69Assert.Equal(TextVisualizerDialog.XmlFormat, instance.FormatKind); 71Assert.Equal([TextVisualizerDialog.PlaintextFormat, TextVisualizerDialog.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 74instance.ChangeFormat(TextVisualizerDialog.PlaintextFormat, rawXml); 76Assert.Equal(TextVisualizerDialog.PlaintextFormat, instance.FormatKind); 91await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty), []); 93var instance = cut.FindComponent<TextVisualizerDialog>().Instance; 95Assert.Equal(TextVisualizerDialog.XmlFormat, instance.FormatKind); 97Assert.Equal([TextVisualizerDialog.PlaintextFormat, TextVisualizerDialog.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 106await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty), []); 108var instance = cut.FindComponent<TextVisualizerDialog>().Instance; 110Assert.Equal(TextVisualizerDialog.PlaintextFormat, instance.FormatKind); 112Assert.Equal([TextVisualizerDialog.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet()); 122await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty), []); 127var instance = cut.FindComponent<TextVisualizerDialog>(); 139await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty), []);