tests/ServiceGovernance.Repository.EntityFramework.Tests/Builder/ApiDocumentBuilder.cs
/// <summary>
/// Returns the built document as serialized (V3) string
/// </summary>
/// <returns></returns>
Returns the built document as serialized (V3) string
Returns the built document as serialized ( V3 ) string
public string BuildAsString()
        {
            var document = Build();
            var sb = new StringBuilder();
            using (var writer = new StringWriter(sb))
            {
                var apiWriter = new OpenApiJsonWriter(writer);
                document.SerializeAsV3(apiWriter);
                apiWriter.Flush();
                writer.Flush();
            }
            return sb.ToString();
        }
public string BuildAsString ( ) { var document = Build ( ) ; var sb = new StringBuilder ( ) ; using ( var writer = new StringWriter ( sb ) ) { var apiWriter = new OpenApiJsonWriter ( writer ) ; document . SerializeAsV3 ( apiWriter ) ; apiWriter . Flush ( ) ; writer . Flush ( ) ; } return sb . ToString ( ) ; }
Returns the built document as serialized (V3) string
Returns the built document as serialized ( V3 ) string
None