/// <summary> /// Assert that ServiceModel client endpoint address is a well-formed URL. /// </summary> /// <param name="xmlTester"><see cref="XmlTester"/>.</param> /// <param name="endpointName">The endpoint name.</param> /// <exception cref="XmlTesterException">if endpoint not found or address is not a well-formed URL.</exception> public static void AssertClientEndpointAddressIsWellFormedUrl(this XmlTester xmlTester, string endpointName) { xmlTester.AssertAttributeValueIsWellFormedUrl(ConfigXPath.ClientEndpointForName(endpointName), "address"); }
/// <summary> /// Get <see cref="XElement"/> for ServiceModel client endpoint. /// </summary> /// <param name="xmlTester"><see cref="XmlTester"/>.</param> /// <param name="endpointName">The endpoint name.</param> /// <returns>The <see cref="XElement"/>.</returns> public static XElement GetClientEndpointElement(this XmlTester xmlTester, string endpointName) { return(xmlTester.AssertElementExists(ConfigXPath.ClientEndpointForName(endpointName))); }