Support AtPath and AtAbsolutePath in WireMockAssertions #712

Closed
opened 2025-12-29 08:32:51 +01:00 by adam · 2 comments
Owner

Originally created by @aholeton on GitHub (Aug 21, 2025).

Originally assigned to: @StefH on GitHub.

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.

Originally created by @aholeton on GitHub (Aug 21, 2025). Originally assigned to: @StefH on GitHub. 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: ```csharp _server.Should() .HaveReceivedACall() .AtPath("/api/myendpoint"); ``` ```csharp _server.Should() .HaveReceived(2) .Calls() .AtPath("/api/myendpoint"); ``` ```csharp _server.Should() .HaveReceivedACall() .AtAbsolutePath("/api/myendpoint"); ``` ```csharp _server.Should() .HaveReceived(2) .Calls() .AtAbsolutePath("/api/myendpoint"); ``` I'm using the `WireMock.Net.AwesomeAssertions` package.
adam added the feature label 2025-12-29 08:32:51 +01:00
adam closed this issue 2025-12-29 08:32:51 +01:00
Author
Owner

@StefH commented on GitHub (Aug 22, 2025):

https://github.com/wiremock/WireMock.Net/pull/1349

@StefH commented on GitHub (Aug 22, 2025): https://github.com/wiremock/WireMock.Net/pull/1349
Author
Owner

@StefH commented on GitHub (Aug 22, 2025):

Next version will have this feature.

Note that the namespace is changed into WireMock.Net.AwesomeAssertions

@StefH commented on GitHub (Aug 22, 2025): Next version will have this feature. Note that the namespace is changed into WireMock.Net.AwesomeAssertions
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#712