mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-24 10:22:13 +01:00
Support for xml namespaces in XPathMatcher (#1005)
* Support for xml namespaces in XPathMatcher * Review findings of Stef implemented. * Fix of build error * New review findings by Stef --------- Co-authored-by: Carsten Alder <carsten.alder@schleupen.de>
This commit is contained in:
@@ -73,4 +73,8 @@ public class MatcherModel
|
||||
/// </summary>
|
||||
public MatcherModel? ContentMatcher { get; set; }
|
||||
#endregion
|
||||
|
||||
#region XPathMatcher
|
||||
public XmlNamespace[]? XmlNamespaceMap { get; set; }
|
||||
#endregion
|
||||
}
|
||||
21
src/WireMock.Net.Abstractions/Admin/Mappings/XmlNamespace.cs
Normal file
21
src/WireMock.Net.Abstractions/Admin/Mappings/XmlNamespace.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace WireMock.Admin.Mappings;
|
||||
|
||||
/// <summary>
|
||||
/// Defines an xml namespace consisting of prefix and uri.
|
||||
/// <example>xmlns:i="http://www.w3.org/2001/XMLSchema-instance"</example>
|
||||
/// </summary>
|
||||
[FluentBuilder.AutoGenerateBuilder]
|
||||
public class XmlNamespace
|
||||
{
|
||||
/// <summary>
|
||||
/// The prefix.
|
||||
/// <example>i</example>
|
||||
/// </summary>
|
||||
public string Prefix { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// The uri.
|
||||
/// <example>http://www.w3.org/2001/XMLSchema-instance</example>
|
||||
/// </summary>
|
||||
public string Uri { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user