# Summary

Class: | WireMock.Models.UrlDetails
Assembly: | WireMock.Net
File(s): | C:\Users\azureuser\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

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

# File(s)

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

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | `using WireMock.Validation;`
|  | `3` |  | ``
|  | `4` |  | `namespace WireMock.Models`
|  | `5` |  | `{`
|  | `6` |  | `/// <summary>`
|  | `7` |  | `/// UrlDetails`
|  | `8` |  | `/// </summary>`
|  | `9` |  | `public class UrlDetails`
|  | `10` |  | `{`
|  | `11` |  | `/// <summary>`
|  | `12` |  | `/// Gets the url (relative).`
|  | `13` |  | `/// </summary>`
| 1251 | `14` |  | `public Uri Url { get; }`
|  | `15` |  | ``
|  | `16` |  | `/// <summary>`
|  | `17` |  | `/// Gets the AbsoluteUrl.`
|  | `18` |  | `/// </summary>`
| 419 | `19` |  | `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>`
| 141 | `25` |  | `public UrlDetails(string url) : this(new Uri(url))`
| 141 | `26` |  | `{`
| 141 | `27` |  | `}`
|  | `28` |  | ``
|  | `29` |  | `/// <summary>`
|  | `30` |  | `/// Initializes a new instance of the <see cref="UrlDetails"/> class.`
|  | `31` |  | `/// </summary>`
|  | `32` |  | `/// <param name="url">The URL.</param>`
| 141 | `33` |  | `public UrlDetails(Uri url) : this(url, url)`
| 141 | `34` |  | `{`
| 141 | `35` |  | `}`
|  | `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>`
| 211 | `42` |  | `public UrlDetails(Uri absoluteUrl, Uri url)`
| 211 | `43` |  | `{`
| 211 | `44` |  | `Check.NotNull(absoluteUrl, nameof(absoluteUrl));`
| 211 | `45` |  | `Check.NotNull(url, nameof(url));`
|  | `46` |  | ``
| 211 | `47` |  | `AbsoluteUrl = absoluteUrl;`
| 211 | `48` |  | `Url = url;`
| 211 | `49` |  | `}`
|  | `50` |  | `}`
|  | `51` |  | `}`

# Methods/Properties

Url()
AbsoluteUrl()
.ctor(System.String)
.ctor(System.Uri)
.ctor(System.Uri,System.Uri)