mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-20 15:31:20 +02:00
Add Func<> matchhing. Solves issue #2
This commit is contained in:
@@ -28,16 +28,6 @@ namespace WireMock
|
||||
/// </summary>
|
||||
private readonly IDictionary<string, string> _headers = new ConcurrentDictionary<string, string>();
|
||||
|
||||
/// <summary>
|
||||
/// The status code.
|
||||
/// </summary>
|
||||
private volatile int statusCode = 200;
|
||||
|
||||
/// <summary>
|
||||
/// The body.
|
||||
/// </summary>
|
||||
private volatile string body;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the headers.
|
||||
/// </summary>
|
||||
@@ -46,34 +36,12 @@ namespace WireMock
|
||||
/// <summary>
|
||||
/// Gets or sets the status code.
|
||||
/// </summary>
|
||||
public int StatusCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
statusCode = value;
|
||||
}
|
||||
}
|
||||
public int StatusCode { get; set; } = 200;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the body.
|
||||
/// </summary>
|
||||
public string Body
|
||||
{
|
||||
get
|
||||
{
|
||||
return body;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
body = value;
|
||||
}
|
||||
}
|
||||
public string Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The add header.
|
||||
|
||||
Reference in New Issue
Block a user