Skip to content

Commit 6858a7e

Browse files
committed
Fix tests
1 parent 5ea86dc commit 6858a7e

3 files changed

+8
-2
lines changed

src/NSwag.ConsoleCore.Tests/GenerateSampleSpecificationTests.CheckCSharpClientsAsync_projectName=NSwag.Sample.NET70Minimal_targetFramework=net7.0_generatesCode=True.verified.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ namespace MyNamespace
258258
var disposeResponse_ = true;
259259
try
260260
{
261-
var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
261+
var headers_ = new System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>>();
262+
foreach (var item_ in response_.Headers)
263+
headers_[item_.Key] = item_.Value;
262264
if (response_.Content != null && response_.Content.Headers != null)
263265
{
264266
foreach (var item_ in response_.Content.Headers)

src/NSwag.Sample.NET70Minimal/GeneratedClientsCs.gen

+3-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ namespace MyNamespace
258258
var disposeResponse_ = true;
259259
try
260260
{
261-
var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
261+
var headers_ = new System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>>();
262+
foreach (var item_ in response_.Headers)
263+
headers_[item_.Key] = item_.Value;
262264
if (response_.Content != null && response_.Content.Headers != null)
263265
{
264266
foreach (var item_ in response_.Content.Headers)

src/NSwag.Sample.NET70Minimal/nswag.json

+2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@
8383
"clientBaseClass": null,
8484
"configurationClass": null,
8585
"generateClientClasses": true,
86+
"suppressClientClassesOutput": false,
8687
"generateClientInterfaces": false,
88+
"suppressClientInterfacesOutput": false,
8789
"clientBaseInterface": null,
8890
"injectHttpClient": true,
8991
"disposeHttpClient": true,

0 commit comments

Comments
 (0)