# 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>`
| 110 | `13` |  | `public Encoding Encoding { get; set; }`
|  | `14` |  | ``
|  | `15` |  | `/// <summary>`
|  | `16` |  | `/// The body as string, this is defined when BodyAsString or BodyAsJson are not null.`
|  | `17` |  | `/// </summary>`
| 151 | `18` |  | `public string BodyAsString { get; set; }`
|  | `19` |  | ``
|  | `20` |  | `/// <summary>`
|  | `21` |  | `/// The body (as JSON object).`
|  | `22` |  | `/// </summary>`
| 122 | `23` |  | `public object BodyAsJson { get; set; }`
|  | `24` |  | ``
|  | `25` |  | `/// <summary>`
|  | `26` |  | `/// The body (as bytearray).`
|  | `27` |  | `/// </summary>`
| 94 | `28` |  | `public byte[] BodyAsBytes { get; set; }`
|  | `29` |  | `}`
|  | `30` |  | `}`

# Methods/Properties

Encoding()
BodyAsString()
BodyAsJson()
BodyAsBytes()