11 references to XmlFormat
Aspire.Dashboard (6)
Components\Dialogs\TextVisualizerDialog.razor.cs (3)
64new SelectViewModel<string> { Id = DashboardUIHelpers.XmlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogXmlFormat)] } 89else if (TextVisualizerViewModel.FormatKind == DashboardUIHelpers.XmlFormat) 91EnabledOptions.Add(DashboardUIHelpers.XmlFormat);
Model\TextVisualizerViewModel.cs (3)
40ChangeFormattedText(DashboardUIHelpers.XmlFormat, indentText ? formattedXml : Text); 55if (knownFormat == DashboardUIHelpers.XmlFormat && TryFormatXml(text, out var formattedXml)) 297if (newFormat == DashboardUIHelpers.XmlFormat)
Aspire.Dashboard.Components.Tests (5)
Controls\TextVisualizerDialogTests.cs (5)
85Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 87Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 110Assert.Equal(DashboardUIHelpers.XmlFormat, formatSelect.Instance.Value?.Id); 168Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 170Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet());