mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
How to use with GitHubClient? #384
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 @gpetrou on GitHub (Nov 13, 2021).
I would like to use WireMock.net with Octokit.
If I use the following code and UseWireMock is false, I get the expected number of repositories.
If it is true and therefore it will use WireMock.net localhost URL, I get a NotFoundException.
Since this is my first time using WireMock.net, I suspect I might be doing a rookie mistake with the options.
Any idea what that might be?
@gpetrou commented on GitHub (Nov 15, 2021):
Looks like this was an issue with the GitHubClient constructor that I was using. If I use the following instead it works: