Skip to content

Support AtPath and AtAbsolutePath in WireMockAssertions #1348

@aholeton

Description

@aholeton

Similar to the AtUrl and AtAbsoluteUrl, please add support for the Path. This is so that the "http://localhost:{_portUsed} doesn't need to be specified:

Examples:

  _server.Should()
    .HaveReceivedACall()
    .AtPath("/api/myendpoint");
  _server.Should()
    .HaveReceived(2)
    .Calls()
    .AtPath("/api/myendpoint");
  _server.Should()
    .HaveReceivedACall()
    .AtAbsolutePath("/api/myendpoint");
  _server.Should()
    .HaveReceived(2)
    .Calls()
    .AtAbsolutePath("/api/myendpoint");

I'm using the WireMock.Net.AwesomeAssertions package.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions