mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-28 10:49:14 +02:00
f38133d7a4
* Add XUnit Logging to TestcontainersTests * .
24 lines
607 B
C#
24 lines
607 B
C#
// Copyright © WireMock.Net
|
|
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using DotNet.Testcontainers.Configurations;
|
|
using DotNet.Testcontainers.Containers;
|
|
|
|
namespace WireMock.Net.Testcontainers;
|
|
|
|
internal class WireMockWaitStrategy : IWaitUntil
|
|
{
|
|
public async Task<bool> UntilAsync(IContainer container)
|
|
{
|
|
if (container is not WireMockContainer wireMockContainer)
|
|
{
|
|
throw new InvalidOperationException("The passed container is not a WireMockContainer.");
|
|
|
|
}
|
|
|
|
await wireMockContainer.CallAdditionalActionsAfterReadyAsync();
|
|
return true;
|
|
}
|
|
}
|