# Summary

Class: | WireMock.Util.BodyData
Assembly: | WireMock.Net
File(s): | C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyData.cs
Covered lines: | 4
Uncovered lines: | 0
Coverable lines: | 4
Total lines: | 30
Line coverage: | 100%

# File(s)

## C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyData.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System.Text;`
|  | `2` |  | ``
|  | `3` |  | `namespace WireMock.Util`
|  | `4` |  | `{`
|  | `5` |  | `/// <summary>`
|  | `6` |  | `/// BodyData`
|  | `7` |  | `/// </summary>`
|  | `8` |  | `public class BodyData`
|  | `9` |  | `{`
|  | `10` |  | `/// <summary>`
|  | `11` |  | `/// The body encoding.`
|  | `12` |  | `/// </summary>`
| 44 | `13` |  | `public Encoding Encoding { get; set; }`
|  | `14` |  | ``
|  | `15` |  | `/// <summary>`
|  | `16` |  | `/// The body as string.`
|  | `17` |  | `/// </summary>`
| 51 | `18` |  | `public string BodyAsString { get; set; }`
|  | `19` |  | ``
|  | `20` |  | `/// <summary>`
|  | `21` |  | `/// The body (as JSON object).`
|  | `22` |  | `/// </summary>`
| 46 | `23` |  | `public object BodyAsJson { get; set; }`
|  | `24` |  | ``
|  | `25` |  | `/// <summary>`
|  | `26` |  | `/// The body (as bytearray).`
|  | `27` |  | `/// </summary>`
| 43 | `28` |  | `public byte[] BodyAsBytes { get; set; }`
|  | `29` |  | `}`
|  | `30` |  | `}`

# Methods/Properties

Encoding()
Encoding(System.Text.Encoding)
BodyAsString()
BodyAsString(System.String)
BodyAsJson()
BodyAsJson(System.Object)
BodyAsBytes()
BodyAsBytes(System.Byte[])