mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-13 12:23:42 +01:00
* Fix DateTime in Response * // Set the DateTime from the Response to the current DateTime --------- Co-authored-by: Stef Heyenrath <stef.heyenrath@apg.nl>
29 lines
771 B
C#
29 lines
771 B
C#
// Copyright © WireMock.Net
|
|
#if NET6_0_OR_GREATER
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using WireMock.Net.Testcontainers.Utils;
|
|
|
|
namespace WireMock.Net.Tests.Facts;
|
|
|
|
[ExcludeFromCodeCoverage]
|
|
public sealed class RunOnDockerFact : FactAttribute
|
|
{
|
|
public RunOnDockerFact(
|
|
[CallerFilePath] string? sourceFilePath = null,
|
|
[CallerLineNumber] int sourceLineNumber = -1) : base(sourceFilePath, sourceLineNumber)
|
|
{
|
|
|
|
OSPlatform currentPlatform;
|
|
try
|
|
{
|
|
currentPlatform = TestcontainersUtils.GetImageOSAsync.Value.Result;
|
|
}
|
|
catch
|
|
{
|
|
Skip = $"Only run test when Docker is installed.";
|
|
}
|
|
}
|
|
}
|
|
#endif |