Skip to content

Commit a18e4be

Browse files
committed
Merge branch 'master' into stef-protobuf
2 parents a2b3a86 + 801546f commit a18e4be

13 files changed

+101
-41
lines changed

CHANGELOG.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 1.5.47 (25 January 2024)
2+
- [#1049](https://github.com/WireMock-Net/WireMock.Net/pull/1049) - Add WithoutHeader to WireMock.FluentAssertions [feature] contributed by [StefH](https://github.com/StefH)
3+
- [#1053](https://github.com/WireMock-Net/WireMock.Net/pull/1053) - [Snyk] Security upgrade Microsoft.IdentityModel.Protocols.OpenIdConnect from 6.12.2 to 6.34.0 [security] contributed by [StefH](https://github.com/StefH)
4+
- [#1057](https://github.com/WireMock-Net/WireMock.Net/pull/1057) - Pin the version from Testcontainers to 3.7.0 in WireMock.Net.Testcontainers [bug] contributed by [StefH](https://github.com/StefH)
5+
- [#1048](https://github.com/WireMock-Net/WireMock.Net/issues/1048) - WithoutHeader fluent assertion [feature]
6+
- [#1054](https://github.com/WireMock-Net/WireMock.Net/issues/1054) - WireMock.Net 1.5.46 is incompatible with TestContainers 3.7.0 (issue 1) [bug]
7+
- [#1059](https://github.com/WireMock-Net/WireMock.Net/issues/1059) - WireMock.Net 1.5.46 is incompatible with TestContainers 3.7.0 (issue 2) [bug]
8+
19
# 1.5.46 (23 December 2023)
210
- [#1044](https://github.com/WireMock-Net/WireMock.Net/pull/1044) - WireMockServerSettingsParser [refactor] contributed by [StefH](https://github.com/StefH)
311
- [#1046](https://github.com/WireMock-Net/WireMock.Net/pull/1046) - Change FindRequestByMappingGuidAsync to return a collection of entries contributed by [tlevesque-ueat](https://github.com/tlevesque-ueat)
@@ -178,7 +186,6 @@
178186
# 1.5.13 (11 December 2022)
179187
- [#858](https://github.com/WireMock-Net/WireMock.Net/pull/858) - Update Transformer functionality to return value instead of string [feature] contributed by [StefH](https://github.com/StefH)
180188
- [#859](https://github.com/WireMock-Net/WireMock.Net/pull/859) - Add UpdatedAt property to Mapping [feature] contributed by [StefH](https://github.com/StefH)
181-
- [#861](https://github.com/WireMock-Net/WireMock.Net/pull/861) - Add extra functionality for issue 55 contributed by [StefH](https://github.com/StefH)
182189
- [#862](https://github.com/WireMock-Net/WireMock.Net/pull/862) - Add client certificate support [feature] contributed by [billybraga](https://github.com/billybraga)
183190
- [#863](https://github.com/WireMock-Net/WireMock.Net/pull/863) - Update WireMockServer.CreateClient/CreateClients to include handlers [feature] contributed by [StefH](https://github.com/StefH)
184191
- [#856](https://github.com/WireMock-Net/WireMock.Net/issues/856) - Inconsistent result with overlapping (duplicate) request [bug]
@@ -222,8 +229,6 @@
222229

223230
# 1.5.6 (12 September 2022)
224231
- [#803](https://github.com/WireMock-Net/WireMock.Net/pull/803) - WebHook : UseFireAndForget + Delay [feature] contributed by [StefH](https://github.com/StefH)
225-
- [#804](https://github.com/WireMock-Net/WireMock.Net/pull/804) - Change nuget to package reference for WireMock.Net.Console.Net472.Cla… [feature] contributed by [mattisking](https://github.com/mattisking)
226-
- [#806](https://github.com/WireMock-Net/WireMock.Net/pull/806) - Tweak middleware and fix bug in example [feature] contributed by [mattisking](https://github.com/mattisking)
227232
- [#801](https://github.com/WireMock-Net/WireMock.Net/issues/801) - Webhook Delays [feature]
228233

229234
# 1.5.5 (03 September 2022)
@@ -795,7 +800,6 @@
795800

796801
# 1.0.15.0 (04 May 2019)
797802
- [#271](https://github.com/WireMock-Net/WireMock.Net/pull/271) - Support Dynamic response files using Handlebars templating [bug, feature] contributed by [StefH](https://github.com/StefH)
798-
- [#272](https://github.com/WireMock-Net/WireMock.Net/pull/272) - Add unit test for JsonPath and BodyAsFile mapping contributed by [denstorti](https://github.com/denstorti)
799803
- [#273](https://github.com/WireMock-Net/WireMock.Net/pull/273) - Dynamic response handlebars templating (2) [bug, feature] contributed by [StefH](https://github.com/StefH)
800804

801805
# 1.0.14.0 (20 April 2019)
@@ -866,7 +870,6 @@
866870
- [#208](https://github.com/WireMock-Net/WireMock.Net/pull/208) - Refactor contributed by [StefH](https://github.com/StefH)
867871
- [#209](https://github.com/WireMock-Net/WireMock.Net/pull/209) - NET Core 2.1 + support for Service Fabric commandline parameters contributed by [StefH](https://github.com/StefH)
868872
- [#212](https://github.com/WireMock-Net/WireMock.Net/pull/212) - Update BodyParser logic contributed by [StefH](https://github.com/StefH)
869-
- [#216](https://github.com/WireMock-Net/WireMock.Net/pull/216) - ResponseBodyData contributed by [StefH](https://github.com/StefH)
870873
- [#217](https://github.com/WireMock-Net/WireMock.Net/pull/217) - Enable Source Link contributed by [kashifsoofi](https://github.com/kashifsoofi)
871874
- [#218](https://github.com/WireMock-Net/WireMock.Net/pull/218) - remove appveyor contributed by [StefH](https://github.com/StefH)
872875
- [#107](https://github.com/WireMock-Net/WireMock.Net/issues/107) - Feature: increase code coverage [feature]
@@ -984,7 +987,6 @@
984987

985988
# 1.0.3.17 (16 May 2018)
986989
- [#134](https://github.com/WireMock-Net/WireMock.Net/pull/134) - Stef negate matcher contributed by [alastairtree](https://github.com/alastairtree)
987-
- [#135](https://github.com/WireMock-Net/WireMock.Net/pull/135) - Merge into the stef_negate_matcher branch (solves issue #133) contributed by [StefH](https://github.com/StefH)
988990
- [#138](https://github.com/WireMock-Net/WireMock.Net/pull/138) - Added Negate matcher logic contributed by [StefH](https://github.com/StefH)
989991
- [#130](https://github.com/WireMock-Net/WireMock.Net/issues/130) - ...
990992

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55

66
<PropertyGroup>
7-
<VersionPrefix>1.5.46</VersionPrefix>
7+
<VersionPrefix>1.5.47</VersionPrefix>
88
<PackageIcon>WireMock.Net-Logo.png</PackageIcon>
99
<PackageProjectUrl>https://github.com/WireMock-Net/WireMock.Net</PackageProjectUrl>
1010
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

Generate-ReleaseNotes.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rem https://github.com/StefH/GitHubReleaseNotes
22

3-
SET version=1.5.46
3+
SET version=1.5.47
44

5-
GitHubReleaseNotes --output CHANGELOG.md --skip-empty-releases --exclude-labels question invalid doc duplicate --version %version% --token %GH_TOKEN%
5+
GitHubReleaseNotes --output CHANGELOG.md --skip-empty-releases --exclude-labels question invalid doc duplicate example --version %version% --token %GH_TOKEN%
66

77
GitHubReleaseNotes --output PackageReleaseNotes.txt --skip-empty-releases --exclude-labels question invalid doc duplicate --template PackageReleaseNotes.template --version %version% --token %GH_TOKEN%

PackageReleaseNotes.txt

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# 1.5.46 (23 December 2023)
2-
- #1044 WireMockServerSettingsParser [refactor]
3-
- #1046 Change FindRequestByMappingGuidAsync to return a collection of entries
1+
# 1.5.47 (25 January 2024)
2+
- #1049 Add WithoutHeader to WireMock.FluentAssertions [feature]
3+
- #1053 [Snyk] Security upgrade Microsoft.IdentityModel.Protocols.OpenIdConnect from 6.12.2 to 6.34.0 [security]
4+
- #1055 Bump System.IdentityModel.Tokens.Jwt from 6.25.0 to 6.34.0 in /examples/WireMock.Net.Console.Net472.Classic [example]
5+
- #1057 Pin the version from Testcontainers to 3.7.0 in WireMock.Net.Testcontainers [bug]
6+
- #1048 WithoutHeader fluent assertion [feature]
7+
- #1054 WireMock.Net 1.5.46 is incompatible with TestContainers 3.7.0 (issue 1) [bug]
8+
- #1059 WireMock.Net 1.5.46 is incompatible with TestContainers 3.7.0 (issue 2) [bug]
49

510
The full release notes can be found here: https://github.com/WireMock-Net/WireMock.Net/blob/master/CHANGELOG.md

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ For more info, see also this WIKI page: [What is WireMock.Net](https://github.co
1515
* Can be used locally or in CI/CD scenarios
1616

1717
## :memo: Blogs
18-
- [mStack.nl : Generate C# Code from Mapping(s)](https://mstack.nl/blog/20230201-wiremock.net-tocode/)
18+
- [mstack.nl : Generate C# Code from Mapping(s)](https://mstack.nl/blog/20230201-wiremock.net-tocode/)
19+
- [mstack.nl : Chaos Engineering with Fault Injections](https://mstack.nl/blogs/wiremock-net-chaos-engineering-with-fault-injections/)
1920

2021

2122
## :computer: Project Info

examples/WireMock.Net.Console.Net472.Classic/WireMock.Net.Console.Net472.Classic.csproj

+18-12
Original file line numberDiff line numberDiff line change
@@ -232,23 +232,27 @@
232232
<Reference Include="Microsoft.Extensions.Primitives, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
233233
<HintPath>..\..\packages\Microsoft.Extensions.Primitives.5.0.0\lib\net461\Microsoft.Extensions.Primitives.dll</HintPath>
234234
</Reference>
235-
<Reference Include="Microsoft.IdentityModel.Abstractions, Version=6.25.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
236-
<HintPath>..\..\packages\Microsoft.IdentityModel.Abstractions.6.25.0\lib\net472\Microsoft.IdentityModel.Abstractions.dll</HintPath>
235+
<Reference Include="Microsoft.IdentityModel.Abstractions, Version=7.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
236+
<HintPath>..\..\packages/Microsoft.IdentityModel.Abstractions.7.2.0/lib/net472/Microsoft.IdentityModel.Abstractions.dll</HintPath>
237+
<Private>True</Private>
237238
</Reference>
238-
<Reference Include="Microsoft.IdentityModel.JsonWebTokens, Version=6.25.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
239-
<HintPath>..\..\packages\Microsoft.IdentityModel.JsonWebTokens.6.25.0\lib\net472\Microsoft.IdentityModel.JsonWebTokens.dll</HintPath>
239+
<Reference Include="Microsoft.IdentityModel.JsonWebTokens, Version=7.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
240+
<HintPath>..\..\packages/Microsoft.IdentityModel.JsonWebTokens.7.2.0/lib/net472/Microsoft.IdentityModel.JsonWebTokens.dll</HintPath>
241+
<Private>True</Private>
240242
</Reference>
241-
<Reference Include="Microsoft.IdentityModel.Logging, Version=6.25.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
242-
<HintPath>..\..\packages\Microsoft.IdentityModel.Logging.6.25.0\lib\net472\Microsoft.IdentityModel.Logging.dll</HintPath>
243+
<Reference Include="Microsoft.IdentityModel.Logging, Version=7.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
244+
<HintPath>..\..\packages/Microsoft.IdentityModel.Logging.7.2.0/lib/net472/Microsoft.IdentityModel.Logging.dll</HintPath>
245+
<Private>True</Private>
243246
</Reference>
244247
<Reference Include="Microsoft.IdentityModel.Protocols, Version=6.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
245248
<HintPath>..\..\packages\Microsoft.IdentityModel.Protocols.6.12.2\lib\net472\Microsoft.IdentityModel.Protocols.dll</HintPath>
246249
</Reference>
247250
<Reference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect, Version=6.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
248251
<HintPath>..\..\packages\Microsoft.IdentityModel.Protocols.OpenIdConnect.6.12.2\lib\net472\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll</HintPath>
249252
</Reference>
250-
<Reference Include="Microsoft.IdentityModel.Tokens, Version=6.25.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
251-
<HintPath>..\..\packages\Microsoft.IdentityModel.Tokens.6.25.0\lib\net472\Microsoft.IdentityModel.Tokens.dll</HintPath>
253+
<Reference Include="Microsoft.IdentityModel.Tokens, Version=7.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
254+
<HintPath>..\..\packages/Microsoft.IdentityModel.Tokens.7.2.0/lib/net472/Microsoft.IdentityModel.Tokens.dll</HintPath>
255+
<Private>True</Private>
252256
</Reference>
253257
<Reference Include="Microsoft.Net.Http.Headers, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
254258
<HintPath>..\..\packages\Microsoft.Net.Http.Headers.2.2.0\lib\netstandard2.0\Microsoft.Net.Http.Headers.dll</HintPath>
@@ -296,17 +300,19 @@
296300
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
297301
<HintPath>..\..\packages\System.Diagnostics.DiagnosticSource.4.5.0\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
298302
</Reference>
299-
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=6.25.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
300-
<HintPath>..\..\packages\System.IdentityModel.Tokens.Jwt.6.25.0\lib\net472\System.IdentityModel.Tokens.Jwt.dll</HintPath>
303+
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=6.34.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
304+
<HintPath>..\..\packages/System.IdentityModel.Tokens.Jwt.6.34.0/lib/net472/System.IdentityModel.Tokens.Jwt.dll</HintPath>
305+
<Private>True</Private>
301306
</Reference>
302307
<Reference Include="System.IO.Pipelines, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
303308
<HintPath>..\..\packages\System.IO.Pipelines.4.5.3\lib\netstandard2.0\System.IO.Pipelines.dll</HintPath>
304309
</Reference>
305310
<Reference Include="System.Linq.Dynamic.Core, Version=1.3.1.0, Culture=neutral, PublicKeyToken=0f07ec44de6ac832, processorArchitecture=MSIL">
306311
<HintPath>..\..\packages\System.Linq.Dynamic.Core.1.3.1\lib\net46\System.Linq.Dynamic.Core.dll</HintPath>
307312
</Reference>
308-
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
309-
<HintPath>..\..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
313+
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
314+
<HintPath>..\..\packages/System.Memory.4.5.5/lib/net461/System.Memory.dll</HintPath>
315+
<Private>True</Private>
310316
</Reference>
311317
<Reference Include="System.Net" />
312318
<Reference Include="System.Net.Http.Formatting, Version=5.2.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

examples/WireMock.Net.Console.Net472.Classic/packages.config

+6-6
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@
115115
<package id="Microsoft.Extensions.Options" version="2.2.0" targetFramework="net472" />
116116
<package id="Microsoft.Extensions.Options.ConfigurationExtensions" version="2.2.0" targetFramework="net472" />
117117
<package id="Microsoft.Extensions.Primitives" version="5.0.0" targetFramework="net472" />
118-
<package id="Microsoft.IdentityModel.Abstractions" version="6.25.0" targetFramework="net472" />
119-
<package id="Microsoft.IdentityModel.JsonWebTokens" version="6.25.0" targetFramework="net472" />
120-
<package id="Microsoft.IdentityModel.Logging" version="6.25.0" targetFramework="net472" />
118+
<package id="Microsoft.IdentityModel.Abstractions" version="7.2.0" targetFramework="net472" />
119+
<package id="Microsoft.IdentityModel.JsonWebTokens" version="7.2.0" targetFramework="net472" />
120+
<package id="Microsoft.IdentityModel.Logging" version="7.2.0" targetFramework="net472" />
121121
<package id="Microsoft.IdentityModel.Protocols" version="6.12.2" targetFramework="net472" />
122122
<package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="6.12.2" targetFramework="net472" />
123-
<package id="Microsoft.IdentityModel.Tokens" version="6.25.0" targetFramework="net472" />
123+
<package id="Microsoft.IdentityModel.Tokens" version="7.2.0" targetFramework="net472" />
124124
<package id="Microsoft.Net.Http.Headers" version="2.2.0" targetFramework="net472" />
125125
<package id="Namotion.Reflection" version="2.0.10" targetFramework="net472" />
126126
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
@@ -136,10 +136,10 @@
136136
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net472" />
137137
<package id="System.ComponentModel.Annotations" version="4.5.0" targetFramework="net472" />
138138
<package id="System.Diagnostics.DiagnosticSource" version="4.5.0" targetFramework="net472" />
139-
<package id="System.IdentityModel.Tokens.Jwt" version="6.25.0" targetFramework="net472" />
139+
<package id="System.IdentityModel.Tokens.Jwt" version="6.34.0" targetFramework="net472" />
140140
<package id="System.IO.Pipelines" version="4.5.3" targetFramework="net472" />
141141
<package id="System.Linq.Dynamic.Core" version="1.3.1" targetFramework="net472" />
142-
<package id="System.Memory" version="4.5.4" targetFramework="net472" />
142+
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
143143
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
144144
<package id="System.Reflection.Metadata" version="1.6.0" targetFramework="net472" />
145145
<package id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" targetFramework="net472" />

src/WireMock.Net.Testcontainers/WireMock.Net.Testcontainers.csproj

+2-5
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>
3131
<PackageReference Include="Stef.Validation" Version="0.1.1" />
32-
<PackageReference Include="Testcontainers" Version="3.6.0" />
32+
<PackageReference Include="Testcontainers" Version="[3.7.0]" />
3333
<PackageReference Include="JetBrains.Annotations" VersionOverride="2022.3.1" PrivateAssets="All" Version="2023.3.0" />
3434
</ItemGroup>
3535

3636
<ItemGroup>
3737
<ProjectReference Include="..\WireMock.Net.RestClient\WireMock.Net.RestClient.csproj" />
3838
</ItemGroup>
39-
40-
<ItemGroup>
41-
<Folder Include="Http\" />
42-
</ItemGroup>
39+
4340
</Project>

src/WireMock.Net.Testcontainers/WireMockConfiguration.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ public sealed class WireMockConfiguration : ContainerConfiguration
1616

1717
public bool HasBasicAuthentication => !string.IsNullOrEmpty(Username) && !string.IsNullOrEmpty(Password);
1818

19-
public WireMockConfiguration(
20-
string? username = null,
21-
string? password = null
22-
)
19+
public WireMockConfiguration(string? username = null, string? password = null)
2320
{
2421
Username = username;
2522
Password = password;

src/WireMock.Net.Testcontainers/WireMockContainerBuilder.cs

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public sealed class WireMockContainerBuilder : ContainerBuilder<WireMockContaine
2525

2626
private readonly Lazy<Task<bool>> _isWindowsAsLazy = new(async () =>
2727
{
28+
if (TestcontainersSettings.OS.DockerEndpointAuthConfig == null)
29+
{
30+
throw new InvalidOperationException($"The {nameof(TestcontainersSettings.OS.DockerEndpointAuthConfig)} is null. Check if Docker is started.");
31+
}
32+
2833
using var dockerClientConfig = TestcontainersSettings.OS.DockerEndpointAuthConfig.GetDockerClientConfiguration();
2934
using var dockerClient = dockerClientConfig.CreateClient();
3035

src/WireMock.Net/WireMock.Net.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
<ItemGroup Condition=" '$(TargetFramework)' != 'netstandard1.3' ">
7575
<PackageReference Include="XPath2.Extensions" Version="1.1.4" />
76-
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="6.12.2" />
76+
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="6.34.0" />
7777
</ItemGroup>
7878

7979
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' or '$(TargetFramework)' == 'net452' ">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#if NET6_0_OR_GREATER
2+
using System.Threading.Tasks;
3+
using FluentAssertions;
4+
using FluentAssertions.Execution;
5+
using WireMock.Net.Testcontainers;
6+
using Xunit;
7+
8+
namespace WireMock.Net.Tests.Testcontainers;
9+
10+
public class TestcontainersTests
11+
{
12+
[Fact]
13+
public async Task WireMockContainer_Build_and_StartAsync_and_StopAsync()
14+
{
15+
// Act
16+
var wireMockContainer = new WireMockContainerBuilder()
17+
.WithAutoRemove(true)
18+
.WithCleanUp(true)
19+
.Build();
20+
21+
try
22+
{
23+
await wireMockContainer.StartAsync().ConfigureAwait(false);
24+
25+
// Assert
26+
using (new AssertionScope())
27+
{
28+
var url = wireMockContainer.GetPublicUrl();
29+
url.Should().NotBeNullOrWhiteSpace();
30+
31+
var adminClient = wireMockContainer.CreateWireMockAdminClient();
32+
33+
var settings = await adminClient.GetSettingsAsync();
34+
settings.Should().NotBeNull();
35+
}
36+
}
37+
finally
38+
{
39+
await wireMockContainer.StopAsync();
40+
}
41+
}
42+
}
43+
#endif

0 commit comments

Comments
 (0)