Version 2.x (#1359)

* Version 2.x

* Setup .NET 9

* 12

* cleanup some #if for NETSTANDARD1_3

* cleanup + fix tests for net8

* openapi

* NO ConfigureAwait(false) + cleanup

* .

* #endif

* HashSet

* WireMock.Net.NUnit

* HttpContext

* Add WebSockets (#1423)

* Add WebSockets

* Add tests

* fix

* more tests

* Add tests

* ...

* remove IOwin

* -

* tests

* fluent

* ok

* match

* .

* byte[]

* x

* func

* func

* byte

* trans

* ...

* frameworks.........

* jmes

* xxx

* sc

* using var httpClient = new HttpClient();

* usings

* maxRetries

* up

* xunit v3

* ct

* ---

* ct

* ct2

* T Unit

* WireMock.Net.TUnitTests / 10

* t unit first

* --project

* no tunit

* t2

* --project

* --project

* ci -  --project

* publish ./test/wiremock-coverage.xml

* windows

* .

* log

* ...

* log

* goed

* BodyType

* .

* .

* --scenario

* ...

* pact

* ct

* .

* WireMock.Net.RestClient.AwesomeAssertions (#1427)

* WireMock.Net.RestClient.AwesomeAssertions

* ok

* atpath

* fix test

* sonar fixes

* ports

* proxy test

* FIX?

* ---

* await Task.Delay(100, _ct);

* ?

* --project

* Aspire: use IDistributedApplicationEventingSubscriber (#1428)

* broadcast

* ok

* more tsts

* .

* Collection

* up

* .

* 2

* remove nfluent

* <VersionPrefix>2.0.0-preview-02</VersionPrefix>

* ...

* .

* nuget icon

* .

* <PackageReference Include="JmesPath.Net" Version="1.1.0" />

* x

* 500

* .

* fix some warnings

* ws
This commit is contained in:
Stef Heyenrath
2026-03-11 17:02:47 +01:00
committed by GitHub
parent d6e19532bc
commit a292f28dda
521 changed files with 79740 additions and 5246 deletions

View File

@@ -1,12 +1,5 @@
// Copyright © WireMock.Net
#if !(NET452 || NET461 || NETCOREAPP3_1)
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using VerifyXunit;
using WireMock.Matchers;
using WireMock.Models;
using WireMock.RequestBuilders;
@@ -15,7 +8,6 @@ using WireMock.Serialization;
using WireMock.Settings;
using WireMock.Types;
using WireMock.Util;
using Xunit;
namespace WireMock.Net.Tests.Serialization;
@@ -100,7 +92,7 @@ message HelloReply {
model.Webhook.Request.BodyAsJson.Should().BeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -177,7 +169,7 @@ message HelloReply {
model.Webhooks[1].Request.Body.Should().Be("2");
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -199,7 +191,7 @@ message HelloReply {
model.Description.Should().Be(description);
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -219,7 +211,7 @@ message HelloReply {
model.Response.UseTransformer.Should().BeTrue();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -250,7 +242,7 @@ message HelloReply {
model.TimeSettings.TTL.Should().Be(ttl);
// Verify
return Verifier.Verify(model, VerifySettings);
return Verify(model, VerifySettings);
}
[Fact]
@@ -296,7 +288,7 @@ message HelloReply {
model.Response.Delay.Should().Be(delay);
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -318,7 +310,7 @@ message HelloReply {
model.Response.MaximumRandomDelay.Should().Be(60_000);
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -341,7 +333,7 @@ message HelloReply {
model.Response.MaximumRandomDelay.Should().Be(maximumDelay);
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -362,7 +354,7 @@ message HelloReply {
model.Probability.Should().Be(0.4);
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -380,7 +372,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -412,7 +404,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -438,7 +430,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -459,7 +451,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
#if TRAILINGHEADERS
@@ -482,7 +474,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -503,7 +495,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
#endif
@@ -528,10 +520,9 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
#if GRAPHQL
[Fact]
public Task ToMappingModel_Request_WithBodyAsGraphQLSchema_ReturnsCorrectModel()
{
@@ -560,11 +551,9 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
#endif
#if PROTOBUF
[Fact]
public Task ToMappingModel_Request_WithBodyAsProtoBuf_ReturnsCorrectModel()
{
@@ -587,7 +576,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -614,7 +603,7 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
[Fact]
@@ -649,8 +638,6 @@ message HelloReply {
model.Should().NotBeNull();
// Verify
return Verifier.Verify(model);
return Verify(model);
}
#endif
}
#endif
}