mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Question: Random port number #253
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @raghu-romp on GitHub (Feb 27, 2020).
The MockServer for unit test says...
How does my underlying HTTP caller know which port number to connect to?
@StefH commented on GitHub (Feb 27, 2020):
You can get the ports with
server.Portsor you can get the urlsserver.Urls, example:https://github.com/WireMock-Net/WireMock.Net/blob/master/test/WireMock.Net.Tests/WireMockServerTests.cs#L50