Skip to content

Is CSharpCodeMatcher actually usable? #1336

@smfields

Description

@smfields

The docs mention a CSharpCodeMatcher and show the following usage:

var server = WireMockServer.Start();
server
    .Given(Request.Create().WithPath("/cs")
        .WithParam("from", new CSharpCodeMatcher("return it == \"x\";")))
    .RespondWith(Response.Create()
        .WithBody("cs match")
    );

But CSharpCodeMatcher is an internal class, so it can't be new'd up directly like shown above. So how are you actually supposed to use it from code?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions