Fix for url encoded path + params (1.0.2.10) - #72

Fix for url encoded path + params (1.0.2.10)
This commit is contained in:
Stef Heyenrath
2017-12-12 18:18:04 +01:00
parent fd5bc203c3
commit d0fc889f42
5 changed files with 30 additions and 22 deletions

View File

@@ -32,7 +32,7 @@ namespace WireMock.Net.ConsoleApplication
server.SetBasicAuthentication("a", "b");
// server.AllowPartialMapping();
server.AllowPartialMapping();
// .WithHeader("Stef", "Stef")
//server
@@ -40,6 +40,15 @@ namespace WireMock.Net.ConsoleApplication
// .RespondWith(Response.Create()
// .WithProxy("http://restcountries.eu"));
server
.Given(Request
.Create()
.WithPath(new WildcardMatcher("/navision/OData/Company('My Company')/School*", true))
.WithParam("$filter", "(substringof(Code, 'WA')")
.UsingGet())
.RespondWith(Response.Create()
.WithBody(@"{ ""result"": ""odata""}"));
server
.Given(Request.Create().WithPath("/headers", "/headers_test").UsingPost().WithHeader("Content-Type", "application/json*"))
.RespondWith(Response.Create()