mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-21 00:28:59 +01:00
* Fix Testcontainers AddProtoDefinition
* .
* UntilHttpRequestIsSucceeded
* WireMockContainer.ContainerPort
* System.Net/System.Net.Http
* ...
* WithWaitStrategy
* MaxHealthCheckRetries
* for
* _adminApi
* static
* ...
* testOutputHelper.WriteLine("Dumping WireMock logs:");
* Console.WriteLine(
* testOutputHelper.WriteLine("Dumping WireMock.Net mappings:");
* fix WithWaitStrategy
* [Fact]
* <PackageReference Include="ProtoBufJsonConverter" Version="0.11.0" />
* [Collection("Grpc")] / [Fact(Skip = "TODO")]
* ...
20 lines
576 B
C#
20 lines
576 B
C#
// Copyright © WireMock.Net
|
|
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace WireMock.Net.Testcontainers.Utils;
|
|
|
|
internal static class CombineUtils
|
|
{
|
|
internal static List<T> Combine<T>(List<T> oldValue, List<T> newValue)
|
|
{
|
|
return oldValue.Union(newValue).ToList();
|
|
}
|
|
|
|
internal static Dictionary<TKey, TValue> Combine<TKey, TValue>(Dictionary<TKey, TValue> oldValue, Dictionary<TKey, TValue> newValue)
|
|
where TKey : notnull
|
|
{
|
|
return oldValue.Union(newValue).ToDictionary(item => item.Key, item => item.Value);
|
|
}
|
|
} |