Add WithProxy(string proxyUrl, X509Certificate2 certificate) (#880)

This commit is contained in:
Stef Heyenrath
2023-02-01 10:42:35 +01:00
committed by GitHub
parent 1000f4409f
commit 6839b11d35
6 changed files with 93 additions and 56 deletions

View File

@@ -1,6 +1,3 @@
using FluentAssertions;
using Moq;
using NFluent;
using System;
using System.Linq;
using System.Net;
@@ -8,6 +5,9 @@ using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using FluentAssertions;
using Moq;
using NFluent;
using WireMock.Constants;
using WireMock.Handlers;
using WireMock.Matchers;
@@ -144,9 +144,11 @@ public class WireMockServerProxyTests
};
var server = WireMockServer.Start(settings);
server.Given(Request.Create()
server
.Given(Request.Create()
.WithPath("/*")
.WithBody(new RegexMatcher(stringBody)))
.WithBody(new RegexMatcher(stringBody))
)
.WithTitle(title)
.WithDescription(description)
.AtPriority(WireMockConstants.ProxyPriority)