Example #1
0
 public void ParseResponse(List <Response> responses)
 {
     foreach (Response response in responses)
     {
         Styler.SetResponseNameStyle(Document.InsertParagraph(response.Name + " [" + response.Status + "]"));
         Document.InsertParagraph("");
         Document.InsertParagraph("Response Status Code: " + response.StatusCode);
         Table table = (Table)AddTable(1, 1);
         table.Rows[0].Cells[0].Paragraphs[0].Append(response.Body);
         Styler.SetTableStyle(table, Styler.Table1Row);
         Document.InsertParagraph("").InsertTableAfterSelf(table);
     }
 }