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

MethodCyclomatic complexity  NPath complexity  Sequence coverage  Branch coverage  
AddHeader(...)10100100
.ctor()10100100

File(s)

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

#LineLine coverage
 1using System.Collections.Concurrent;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5namespace WireMock
 6{
 7    /// <summary>
 8    /// The response.
 9    /// </summary>
 10    public class ResponseMessage
 11    {
 12        /// <summary>
 13        /// Gets the headers.
 14        /// </summary>
 5715        public IDictionary<string, string> Headers { get; set; } = new ConcurrentDictionary<string, string>();
 16
 17        /// <summary>
 18        /// Gets or sets the status code.
 19        /// </summary>
 9120        public int StatusCode { get; set; } = 200;
 21
 22        /// <summary>
 23        /// Gets or sets the body.
 24        /// </summary>
 325        public string BodyOriginal { get; set; }
 26
 27        /// <summary>
 28        /// Gets or sets the body.
 29        /// </summary>
 6130        public string Body { get; set; }
 31
 32        /// <summary>
 33        /// Gets or sets the body encoding.
 34        /// </summary>
 6135        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)
 247        {
 248            Headers.Add(name, value);
 249        }
 50    }
 51}