12 references to XmlFormat
Aspire.Dashboard (6)
Components\Dialogs\TextVisualizerDialog.razor.cs (3)
66new SelectViewModel<string> { Id = DashboardUIHelpers.XmlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogXmlFormat)] } 91else if (TextVisualizerViewModel.FormatKind == DashboardUIHelpers.XmlFormat) 93EnabledOptions.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)
200Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 202Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 225Assert.Equal(DashboardUIHelpers.XmlFormat, formatSelect.Instance.Value?.Id); 283Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 285Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 536[InlineData("<query>SELECT 1</query>", null, DashboardUIHelpers.XmlFormat)]