# Summary

Class: | WireMock.ResponseMessage
Assembly: | WireMock.Net
File(s): | C:\Users\Stef\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessage.cs
Covered lines: | 8
Uncovered lines: | 0
Coverable lines: | 8
Total lines: | 51
Line coverage: | 100%

# Metrics

Method | Cyclomatic complexity | NPath complexity | Sequence coverage | Branch coverage
--- | --- | --- | --- | ---
AddHeader(...) | 1 | 0 | 100 | 100
.ctor() | 1 | 0 | 100 | 100

# File(s)

## C:\Users\Stef\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessage.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System.Collections.Concurrent;`
|  | `2` |  | `using System.Collections.Generic;`
|  | `3` |  | `using System.Text;`
|  | `4` |  | ``
|  | `5` |  | `namespace WireMock`
|  | `6` |  | `{`
|  | `7` |  | `/// <summary>`
|  | `8` |  | `/// The response.`
|  | `9` |  | `/// </summary>`
|  | `10` |  | `public class ResponseMessage`
|  | `11` |  | `{`
|  | `12` |  | `/// <summary>`
|  | `13` |  | `/// Gets the headers.`
|  | `14` |  | `/// </summary>`
| 57 | `15` |  | `public IDictionary<string, string> Headers { get; set; } = new ConcurrentDictionary<string, string>();`
|  | `16` |  | ``
|  | `17` |  | `/// <summary>`
|  | `18` |  | `/// Gets or sets the status code.`
|  | `19` |  | `/// </summary>`
| 91 | `20` |  | `public int StatusCode { get; set; } = 200;`
|  | `21` |  | ``
|  | `22` |  | `/// <summary>`
|  | `23` |  | `/// Gets or sets the body.`
|  | `24` |  | `/// </summary>`
| 3 | `25` |  | `public string BodyOriginal { get; set; }`
|  | `26` |  | ``
|  | `27` |  | `/// <summary>`
|  | `28` |  | `/// Gets or sets the body.`
|  | `29` |  | `/// </summary>`
| 61 | `30` |  | `public string Body { get; set; }`
|  | `31` |  | ``
|  | `32` |  | `/// <summary>`
|  | `33` |  | `/// Gets or sets the body encoding.`
|  | `34` |  | `/// </summary>`
| 61 | `35` |  | `public Encoding BodyEncoding { get; set; } = new UTF8Encoding(false);`
|  | `36` |  | ``
|  | `37` |  | `/// <summary>`
|  | `38` |  | `/// The add header.`
|  | `39` |  | `/// </summary>`
|  | `40` |  | `/// <param name="name">`
|  | `41` |  | `/// The name.`
|  | `42` |  | `/// </param>`
|  | `43` |  | `/// <param name="value">`
|  | `44` |  | `/// The value.`
|  | `45` |  | `/// </param>`
|  | `46` |  | `public void AddHeader(string name, string value)`
| 2 | `47` |  | `{`
| 2 | `48` |  | `Headers.Add(name, value);`
| 2 | `49` |  | `}`
|  | `50` |  | `}`
|  | `51` |  | `}`

# Methods/Properties

Headers()
Headers(System.Collections.Generic.IDictionary`2<System.String,System.String>)
.ctor()
StatusCode()
StatusCode(System.Int32)
BodyOriginal()
BodyOriginal(System.String)
Body()
Body(System.String)
BodyEncoding()
BodyEncoding(System.Text.Encoding)
AddHeader(System.String,System.String)