mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-21 08:39:00 +01:00
Add WithProxy(string proxyUrl, X509Certificate2 certificate) (#880)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user