using System; using Stef.Validation; namespace WireMock.Models; /// /// UrlDetails /// public class UrlDetails { /// /// Gets the url (relative). /// public Uri Url { get; } /// /// Gets the AbsoluteUrl. /// public Uri AbsoluteUrl { get; } /// /// Initializes a new instance of the class. /// /// The URL. public UrlDetails(string url) : this(new Uri(url)) { } /// /// Initializes a new instance of the class. /// /// The URL. public UrlDetails(Uri url) : this(url, url) { } /// /// Initializes a new instance of the class. /// /// The absolute URL. /// The URL (relative). public UrlDetails(Uri absoluteUrl, Uri url) { AbsoluteUrl = Guard.NotNull(absoluteUrl); Url = Guard.NotNull(url); } }