# Summary

Class: | WireMock.ResponseMessageBuilder
Assembly: | WireMock.Net
File(s): | C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseMessageBuilder.cs
Covered lines: | 11
Uncovered lines: | 0
Coverable lines: | 11
Total lines: | 26
Line coverage: | 100%
Branch coverage: | 50%

# Metrics

Method | Cyclomatic complexity | NPath complexity | Sequence coverage | Branch coverage
--- | --- | --- | --- | ---
Create(...) | 0 | 0 | 1 | 0.5
.cctor() | 0 | 0 | 1 | 0

# File(s)

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

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | `using System.Collections.Generic;`
|  | `3` |  | `using WireMock.Admin.Mappings;`
|  | `4` |  | `using WireMock.Http;`
|  | `5` |  | `using WireMock.Util;`
|  | `6` |  | ``
|  | `7` |  | `namespace WireMock`
|  | `8` |  | `{`
|  | `9` |  | `internal static class ResponseMessageBuilder`
|  | `10` |  | `{`
| 1 | `11` |  | `private static string ContentTypeJson = "application/json";`
| 1 | `12` |  | `private static readonly IDictionary<string, WireMockList<string>> ContentTypeJsonHeaders = new Dictionary<string`
|  | `13` |  | ``
|  | `14` |  | `internal static ResponseMessage Create(string message, int statusCode = 200, Guid? guid = null)`
| 17 | `15` |  | `{`
| 17 | `16` |  | `var response = new ResponseMessage`
| 17 | `17` |  | `{`
| 17 | `18` |  | `StatusCode = statusCode,`
| 17 | `19` |  | `Headers = ContentTypeJsonHeaders,`
| 17 | `20` |  | `BodyAsJson = message != null ? new StatusModel { Status = message, Guid = guid } : null`
| 17 | `21` |  | `};`
|  | `22` |  | ``
| 17 | `23` |  | `return response;`
| 17 | `24` |  | `}`
|  | `25` |  | `}`
|  | `26` |  | `}`

# Methods/Properties

.cctor()
Create(System.String,System.Int32,System.Nullable`1<System.Guid>)