12 references to XmlFormat
Aspire.Dashboard (6)
Components\Dialogs\TextVisualizerDialog.razor.cs (3)
65new SelectViewModel<string> { Id = DashboardUIHelpers.XmlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogXmlFormat)] } 90else if (TextVisualizerViewModel.FormatKind == DashboardUIHelpers.XmlFormat) 92EnabledOptions.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 (6)
Controls\TextVisualizerDialogTests.cs (6)
127Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 129Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 152Assert.Equal(DashboardUIHelpers.XmlFormat, formatSelect.Instance.Value?.Id); 210Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 212Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 463[InlineData("<query>SELECT 1</query>", null, DashboardUIHelpers.XmlFormat)]