9 references to WriteToJson
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoApiReferenceExporter.cs (1)
63using var document = JsonDocument.Parse(GoApiExportWriter.WriteToJson(model));
Aspire.Hosting.CodeGeneration.Go.Tests (8)
GoApiExportTests.cs (8)
30var json = GoApiExportWriter.WriteToJson(CreateFocusedModel(), indented: true); 39var json = GoApiExportWriter.WriteToJson(CreateFocusedModel()); 87var export = JsonNode.Parse(GoApiExportWriter.WriteToJson(BuildModel(TestTypesAssemblyName)))!; 304var json = JsonNode.Parse(GoApiExportWriter.WriteToJson(model))!; 375var first = GoApiExportWriter.WriteToJson(BuildModel(HostingAssemblyName, TestTypesAssemblyName)); 376var second = GoApiExportWriter.WriteToJson(BuildModel(TestTypesAssemblyName, HostingAssemblyName)); 544Assert.Equal(GoApiExportWriter.WriteToJson(BuildModel(TestTypesAssemblyName)), export.GetRawText()); 1012return GoApiExportWriter.WriteToJson(