Michi
c1b23b615e
Support Testcontainers 4.8.0 ( #1370 )
2025-10-22 10:18:16 +02:00
Stef Heyenrath
5885324dfb
Fix WithProbability logic ( #1367 )
...
* Fix WithProbability logic
* .
* FIX
* Update src/WireMock.Net.Minimal/Owin/MappingMatcher.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-22 10:16:59 +02:00
Stef Heyenrath
b9019a2f61
Update ProxyUrlReplaceSettingsModel with TransformTemplate property ( #1362 )
...
* Update ProxyUrlReplaceSettingsModel with TransformTemplate property + parse settings correctly
* oldValue nullable
* <Version>1.14.0-preview-01</Version>
2025-10-06 09:16:25 +02:00
Stef Heyenrath
b82dad2563
Add Tls13 ( #1363 )
...
* Add Tls13
* fix
2025-10-05 15:51:47 +02:00
Stef Heyenrath
19e95325fa
ProxyUrlTransformer ( #1361 )
...
* ProxyUrlTransformer
* tests
* Update src/WireMock.Net.Shared/Settings/ProxyUrlReplaceSettings.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-28 12:40:33 +02:00
Stef Heyenrath
371bfdc160
TypeLoader: implement Try methods ( #1358 )
...
* TypeLoader: implement Try methods
* fix
2025-08-31 08:48:29 +02:00
Stef Heyenrath
068fdf33e3
Upgrade Testcontainers to 4.7.0 ( #1357 )
...
* Upgrade Testcontainers to 4.7.0
* .
2025-08-30 11:46:52 +02:00
Stef Heyenrath
35bf5e94a5
Add System.Net.Http again to solve CVE warning ( #1354 )
2025-08-27 08:45:24 +02:00
Stef Heyenrath
9fcc9ade10
Add additional try-catch to TypeLoader logic ( #1352 )
2025-08-27 08:33:01 +02:00
Stef Heyenrath
865bbf2432
WireMock.Net.ProtoBuf: fix version
2025-08-26 15:42:23 +02:00
Stef Heyenrath
e5c4605020
Create WireMock.Net.ProtoBuf project ( #1350 )
...
* Create WireMock.Net.ProtoBuf project
* ok
* Update Directory.Build.props
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-26 07:55:02 +02:00
Stef Heyenrath
08117e870b
Add AtPath and AtAbsolutePath to Assertions projects ( #1349 )
...
* Add AtPath and AtAbsolutePath to Assertions projects
* tst
2025-08-22 19:40:59 +02:00
Stef Heyenrath
ddb181cc52
WireMock.Net.Extensions.Routing
2025-08-18 20:47:10 +02:00
Gennadii Saltyshchak
be2ea67b89
Add new package WireMock.Net.Extensions.Routing which provides minimal-API-style routing for WireMock.Net ( #1344 )
...
* Add new package WireMock.Net.Extensions.Routing
* Update documentation for WireMock.Net.Extensions.Routing
* Cleanup imports
* Add header to all source files inside WireMock.Net.Extensions.Routing
* Add header to all source files inside WireMock.Net.Extensions.Routing.Tests
* Revert unintended changes
* Remove redundant build configurations
* Remove incorrect links from documentation
* Update nuget package references
* Revert unintended changes
* Migrate to AwesomeAssertions
* Remove redundant project reference
* Adjust formatting
* Migrate to primary constructor
* Refactoring: rename delegate parameter
* Abstract over JSON converter
* Replace WireMock with WireMock.Net in comments
* Move local functions to the bottom of the methods
2025-08-18 19:52:42 +02:00
Stef Heyenrath
22ed94918a
Fix generating source code for Scenario and State ( #1347 )
...
* Fix generating source code for Scenario and State
* Update src/WireMock.Net.Minimal/Serialization/MappingConverter.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.Minimal/Serialization/MappingConverter.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-17 10:06:39 +02:00
Stef Heyenrath
faffc56484
Add TimesInSameState to MappingModel ( #1345 )
...
* Add TimesInSameState to MappingModel
* fix tests
2025-08-11 08:46:18 +02:00
Stef Heyenrath
0597a73e0e
Create GraphQL project ( #1334 )
...
* Create new project for GraphQL
* ...
* .
* ok?
* Update src/WireMock.Net.Shared/Extensions/AnyOfExtensions.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* --
* ...
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-10 19:00:22 +02:00
Sam Fields
6ccfe68686
Fixes an issue with matching JSON bodies as bytes ( #1339 )
...
* Fixes an issue with matching JSON bodies as bytes
* Adding tests for exact object matching
* Simplify the check for byte data
2025-08-02 20:11:13 +02:00
Stef Heyenrath
e6ff8776fb
Make CSharpCodeMatcher public ( #1337 )
2025-07-23 09:29:53 +02:00
Stef Heyenrath
e80d436dd6
Use corerct Handlebars.Net.Helpers.Xslt (2.5.2) ( #1332 )
2025-07-18 10:57:58 +02:00
Stef Heyenrath
020cc15420
Correctly map the Pact Interaction Description property ( #1331 )
...
* Correctly map the Pact Interaction Description property
* Update src/WireMock.Net.Minimal/Serialization/PactMapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* post
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-18 08:41:04 +02:00
Stef Heyenrath
a06ee6b158
Fix HandlebarsContext.ParseAndEvaluate ( #1329 )
2025-07-12 11:05:02 +02:00
Stef Heyenrath
b0076b4e81
Implement IMimeMessageData ( #1326 )
...
* Implement IMimeMessageData
* 1
* Update src/WireMock.Net.MimePart/Util/MimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* v1
* v2
* e
* ?
* fix
* if (Array.TrueForAll(_funcs, func => func(value).IsPerfect()))
* Update src/WireMock.Net.Shared/Util/IMimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.Minimal/Matchers/Request/RequestMessageMultiPartMatcher.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.MimePart/Models/MimeEntityDataWrapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Models.Mime.IMimeMessageData? BodyAsMimeMessage { get; }
* Update src/WireMock.Net.MimePart/Util/MimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.MimePart/Models/MimePartDataWrapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.MimePart/Models/MimeMessageDataWrapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.Shared/Util/IMimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-12 09:54:18 +02:00
Stef Heyenrath
6c61f87ef3
Add method CreateHttpClientFactory ( #1325 )
...
* Add method CreateHttpClientFactory
* rev
2025-07-08 10:50:30 +02:00
Stef Heyenrath
f80925c1fb
Add Scenario set State method ( #1322 )
...
* Add SetScenarioState
* add tests
* summary
* .
* 1.8.13-preview-01
* fix
* fix name
2025-06-23 08:03:11 +02:00
Stef Heyenrath
7b93b2668d
Fix TypeLoader ( #1320 )
...
* no ilmerge
* .
* .
* nullable
* .UsingNuGet
* fix
* .
* directoriesToSearch
* .
2025-06-15 11:44:09 +02:00
Dom Light
70a9180af4
Set description when converting MappingModel to IRespondWithAProvider ( #1317 )
...
Adding a mapping with a description to `WireMockServer.WithMapping`
did not include the description to the resulting
`IRespondWithAProvider`, which means that calling
`WireMockServer.SavePact` does not populate the description in the
contract file.
This PR includes the description when mapping from `MappingModel` to
`IRespondWithAProvider`.
2025-06-14 11:13:04 +02:00
Stef Heyenrath
77000372c6
Fix for WithTransformer and JsonBody as list ( #1315 )
...
* Fix for WithTransformer and JsonBody as list
* Fix WithTransformer when the response BodyAsJson is a List
2025-06-11 11:51:29 +02:00
Stef Heyenrath
ac9c51e34e
Update RandomDataGenerator.Net to 1.0.19 ( #1313 )
...
* Update RandomDataGenerator.Net to 1.0.19
* Handlebars.Net.Helpers
2025-06-11 09:00:23 +02:00
Sébastien Crocquesel
8ba243ddcd
Bump Testcontainers version to 4.5.0 ( #1311 )
...
* Bump Testcontainers version to 4.5.0
The Testcontainers dependency Docker.DotNet was bumped to 3.128.1 and is not binary compatible with previous version.
When a user has a direct dependency on Testcontainers 4.5.0, WireMock.Net.Testcontainers fails with :
System.MissingMethodException : Method not found: 'Docker.DotNet.DockerClient Docker.DotNet.DockerClientConfiguration.CreateClient(System.Version)'
* Bump System.Net.Http.Json version to 8.0.1
Minimum required version for Testcontainers 4.5.0
* Do not dispose null container
2025-06-10 22:23:56 +02:00
Stef Heyenrath
c1bd2d315f
Update AwesomeAssertions to version 9 ( #1309 )
2025-06-06 21:06:38 +02:00
Stef Heyenrath
8917a6eaaa
For some projects, change dependency to WireMock.Net.Minimal ( #1308 )
2025-06-06 11:22:34 +02:00
Stef Heyenrath
3cc9040f51
Update RequestModelBuilder (add WithHeader) ( #1306 )
...
* Update RequestModelBuilder (add WithHeader)
* rejectOnMatch
* fix
2025-06-05 12:24:40 +02:00
Stef Heyenrath
86d4717216
Add option to provide X509Certificate ( #1303 )
...
* Add option to provide X509CertificateRawData
* X509Certificate
* remove X509CertificateRawData
2025-05-28 07:15:46 +02:00
Stef Heyenrath
96eca4262a
Create WireMock.Net.MimePart project ( #1300 )
...
* Create WireMock.Net.MimePart project
* .
* REFACTOR
* ILRepack
* --
* ...
* x
* x
* .
* fix
* public class MimePartMatcher
* shared
* min
* .
* <!--<DelaySign>true</DelaySign>-->
* Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-24 12:17:42 +02:00
Stef Heyenrath
339d3ab3a8
Fix CSharpFormatterTests
2025-05-22 08:42:23 +02:00
Stef Heyenrath
17545da2c3
Add extra unit test test to CSharpFormatterTests
2025-05-22 08:14:45 +02:00
Asaf Agami
b4279be3cb
Fix exception when converting json array to C# code ( #1301 )
2025-05-22 07:54:58 +02:00
Stef Heyenrath
d628ce2270
Fix BodyParser to correctly check for json ( #1297 )
...
* Fix BodyParser to correctly check for json
* JsonUtils
2025-05-21 17:28:29 +02:00
Stef Heyenrath
1e23c58bf2
Use TinyMapper.Signed ( #1299 )
...
* Use TinyMapper.Signed
* <PackageReference Include="TinyMapper.Signed" Version="4.0.0" />
2025-05-17 18:29:03 +02:00
Stef Heyenrath
61b6eb8752
Content-Type multipart/form-data header should also be proxied ( #1296 )
2025-05-15 18:21:21 +02:00
Stef Heyenrath
baa33552e9
1.8.5
2025-05-14 07:34:04 +02:00
Stef Heyenrath
7596967fcc
Grpc: Fix parsing null value for google.protobuf.Timestamp ( #1293 )
...
* Add another example for Grpc client + mapping
* <PackageReference Include="ProtoBufJsonConverter" Version="0.9.0" />
2025-05-10 12:53:18 +02:00
Stef
b43be28b5f
1.8.4
2025-05-08 20:15:23 +02:00
Stef Heyenrath
5ed09d84a3
Use ILRepack to include Microsoft.OpenApi as internal ( #1290 )
...
* .
* Use ILRepack to include Microsoft.OpenApi as internal
* ...
* OpenApiSpecificationVersion
* .
* 080
* 4
2025-05-08 20:11:41 +02:00
Stef Heyenrath
249b3562ab
Update AzureADAuthenticationMatcher to support V2 Azure AAD tokens ( #1288 )
...
* Update AzureADAuthenticationMatcher to support V2 Azure AAD tokens
* fix ;-)
* add tests
* Update test/WireMock.Net.Tests/Authentication/MockJwtSecurityTokenHandler.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .
* WIREMOCK_AAD_TENANT
* update logging
* throw new SecurityTokenInvalidIssuerException($"tenant {extractedTenant} does not match {_tenant}.");
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-06 18:49:21 +02:00
Stef Heyenrath
4303706530
Update ProtoBufJsonConverter to fix conflict for 'MessageOptions' ( #1291 )
...
* Update ProtoBufJsonConverter to fix conflict for 'MessageOptions'
* <PackageReference Include="ProtoBufJsonConverter" Version="0.8.0" />
2025-05-05 10:21:15 +02:00
Stef Heyenrath
5c8105b50d
move 'WireMock.Net.OpenApiParser.Preview' to ''src-preview' folder
2025-05-02 09:15:59 +02:00
Stef Heyenrath
630ffab56e
Do not generate NuGet for WireMock.Net.OpenApiParser.Preview
2025-05-02 08:50:32 +02:00
Stef Heyenrath
c181d0286a
Do not generate NuGet for WireMock.Net.OpenApiParser.Preview
2025-05-02 08:41:51 +02:00