Summary

Class:WireMock.Models.UrlDetails
Assembly:WireMock.Net
File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs
Covered lines:15
Uncovered lines:0
Coverable lines:15
Total lines:51
Line coverage:100%

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.ctor(...)0010
.ctor(...)0010
.ctor(...)0010

File(s)

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs

#LineLine coverage
 1using System;
 2using WireMock.Validation;
 3
 4namespace WireMock.Models
 5{
 6    /// <summary>
 7    /// UrlDetails
 8    /// </summary>
 9    public class UrlDetails
 10    {
 11        /// <summary>
 12        /// Gets the url (relative).
 13        /// </summary>
 120314        public Uri Url { get; }
 15
 16        /// <summary>
 17        /// Gets the AbsoluteUrl.
 18        /// </summary>
 40319        public Uri AbsoluteUrl { get; }
 20
 21        /// <summary>
 22        /// Initializes a new instance of the <see cref="UrlDetails"/> class.
 23        /// </summary>
 24        /// <param name="url">The URL.</param>
 15225        public UrlDetails(string url) : this(new Uri(url))
 15226        {
 15227        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the <see cref="UrlDetails"/> class.
 31        /// </summary>
 32        /// <param name="url">The URL.</param>
 15233        public UrlDetails(Uri url) : this(url, url)
 15234        {
 15235        }
 36
 37        /// <summary>
 38        /// Initializes a new instance of the <see cref="UrlDetails"/> class.
 39        /// </summary>
 40        /// <param name="absoluteUrl">The absolute URL.</param>
 41        /// <param name="url">The URL (relative).</param>
 20342        public UrlDetails(Uri absoluteUrl, Uri url)
 20343        {
 20344            Check.NotNull(absoluteUrl, nameof(absoluteUrl));
 20345            Check.NotNull(url, nameof(url));
 46
 20347            AbsoluteUrl = absoluteUrl;
 20348            Url = url;
 20349        }
 50    }
 51}