mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-07-28 23:48:35 +02:00
* Fix: Fully respect configured custom admin path * Add tests for custom admin path behaviour * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Peter Benko <peter.benko@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Stef Heyenrath <Stef.Heyenrath@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Peter Benko
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Stef Heyenrath
Copilot Autofix powered by AI
parent
5692498ea3
commit
ca4eea808e
@@ -50,6 +50,9 @@ public class WireMockMiddlewareTests
|
||||
_guidUtilsMock = new Mock<IGuidUtils>();
|
||||
_guidUtilsMock.Setup(g => g.NewGuid()).Returns(NewGuid);
|
||||
|
||||
var adminPathsMock = new Mock<IAdminPaths>();
|
||||
adminPathsMock.Setup(a => a.Includes(It.IsAny<string?>())).Returns((string? path) => path?.StartsWith("/__admin/") == true);
|
||||
|
||||
_dateTimeUtilsMock = new Mock<IDateTimeUtils>();
|
||||
_dateTimeUtilsMock.Setup(d => d.UtcNow).Returns(UtcNow);
|
||||
|
||||
@@ -89,6 +92,7 @@ public class WireMockMiddlewareTests
|
||||
_sut = new WireMockMiddleware(
|
||||
_ => Task.CompletedTask,
|
||||
_optionsMock.Object,
|
||||
adminPathsMock.Object,
|
||||
_requestMapperMock.Object,
|
||||
_responseMapperMock.Object,
|
||||
_matcherMock.Object,
|
||||
|
||||
Reference in New Issue
Block a user