14 instantiations of TextVisualizerDialogViewModel
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
143new TextVisualizerDialogViewModel(options.Value, options.ValueDescription, options.ContainsSecret, options.DownloadFileName, options.FixedFormat), parameters);
Aspire.Dashboard.Components.Tests (13)
Controls\TextVisualizerDialogTests.cs (13)
51await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawJson, string.Empty, false), new DialogParameters()); 79await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), new DialogParameters()); 100var content = new TextVisualizerDialogViewModel(rawXml, string.Empty, false); 162await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), new DialogParameters()); 179await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, false), new DialogParameters()); 196await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, false), new DialogParameters()); 211await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), new DialogParameters()); 230await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), new DialogParameters()); 253await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), new DialogParameters()); 276await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), new DialogParameters()); 296await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), new DialogParameters()); 308await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: false, FixedFormat: DashboardUIHelpers.PropertiesFormat), new DialogParameters()); 328await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: false, FixedFormat: DashboardUIHelpers.JsonFormat), new DialogParameters());
4 references to TextVisualizerDialogViewModel
Aspire.Dashboard (2)
Components\Dialogs\TextVisualizerDialog.razor.cs (2)
22private TextVisualizerDialogViewModel? _previousContent; 35public required TextVisualizerDialogViewModel Content { get; set; }
Aspire.Dashboard.Components.Tests (2)
Controls\TextVisualizerDialogTests.cs (2)
100var content = new TextVisualizerDialogViewModel(rawXml, string.Empty, false); 367childBuilder.Add(p => p.Content, Assert.IsType<TextVisualizerDialogViewModel>(content));