AtPriority (#16)

This commit is contained in:
Stef Heyenrath
2017-01-31 09:28:04 +01:00
parent 8a4e5b5790
commit 84901ab1e4
9 changed files with 96 additions and 29 deletions

View File

@@ -9,6 +9,14 @@ namespace WireMock
/// </summary>
public class Mapping
{
/// <summary>
/// Gets the priority.
/// </summary>
/// <value>
/// The priority.
/// </value>
public int Priority { get; }
/// <summary>
/// Gets the unique identifier.
/// </summary>
@@ -33,8 +41,10 @@ namespace WireMock
/// <param name="guid">The the unique identifier.</param>
/// <param name="requestMatcher">The request matcher.</param>
/// <param name="provider">The provider.</param>
public Mapping(Guid guid, IRequestMatcher requestMatcher, IResponseProvider provider)
/// <param name="priority">The priority for this mapping.</param>
public Mapping(Guid guid, IRequestMatcher requestMatcher, IResponseProvider provider, int priority)
{
Priority = priority;
Guid = guid;
RequestMatcher = requestMatcher;
Provider = provider;