Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Sep 26, 2024
1 parent 1dc6362 commit 9022965
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions examples/WireMock.Net.TestcontainersExample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright © WireMock.Net

using System.Runtime.InteropServices;
using Newtonsoft.Json;
using WireMock.Net.Testcontainers;

Expand All @@ -10,7 +11,7 @@ internal class Program
private static async Task Main(string[] args)
{
var original = Console.ForegroundColor;

try
{
Console.ForegroundColor = ConsoleColor.Yellow;
Expand Down Expand Up @@ -107,11 +108,19 @@ private static async Task TestAsync(string? image = null)
{
var builder = new WireMockContainerBuilder()
.WithAdminUserNameAndPassword("x", "y")
// .WithMappings(@"C:\Dev\GitHub\WireMock.Net\examples\WireMock.Net.Console.NET6\__admin\mappings")
.WithWatchStaticMappings(true)
.WithAutoRemove(true)
.WithCleanUp(true);

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
builder = builder.WithMappings(@"C:\Dev\GitHub\WireMock.Net\examples\WireMock.Net.Console.NET6\__admin\mappings");
}
else
{
builder = builder.WithMappings("./examples/WireMock.Net.Console.NET6/__admin/mappings");
}

if (image != null)
{
builder = image switch
Expand Down

0 comments on commit 9022965

Please sign in to comment.