mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-20 23:51:44 +01:00
34 lines
753 B
C#
34 lines
753 B
C#
// Copyright © WireMock.Net
|
|
|
|
using WireMock.Net.Testcontainers;
|
|
|
|
namespace WireMock.Net.TestContainers.ConsoleApp;
|
|
|
|
/// <summary>
|
|
/// Test if WireMock.Net.Testcontainers is compatible with the latest version of Testcontainers for .NET
|
|
/// </summary>
|
|
internal class Program
|
|
{
|
|
private static async Task<int> Main(string[] args)
|
|
{
|
|
try
|
|
{
|
|
await TestAsync();
|
|
return 0;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.Error.WriteLine(ex);
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
private static async Task TestAsync()
|
|
{
|
|
var builder = new WireMockContainerBuilder()
|
|
.WithLinuxImage()
|
|
.WithWatchStaticMappings(true);
|
|
|
|
_ = builder.Build();
|
|
}
|
|
} |