mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-10 10:53:32 +02:00
Add implicit operators to WireMockList (#823)
* Add implicit operators to WireMockList * .
This commit is contained in:
@@ -251,8 +251,15 @@ internal class MappingConverter
|
||||
var newDictionary = new Dictionary<string, object>();
|
||||
foreach (var entry in dictionary)
|
||||
{
|
||||
object value = entry.Value.Count == 1 ? entry.Value.ToString() : entry.Value;
|
||||
newDictionary.Add(entry.Key, value);
|
||||
// ReSharper disable once ConvertIfStatementToConditionalTernaryExpression
|
||||
if (entry.Value.Count == 1)
|
||||
{
|
||||
newDictionary.Add(entry.Key, entry.Value.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
newDictionary.Add(entry.Key, entry.Value);
|
||||
}
|
||||
}
|
||||
|
||||
return newDictionary;
|
||||
|
||||
Reference in New Issue
Block a user