Fix csharp mapping code generator (#926)

This commit is contained in:
Cezary Piątek
2023-05-02 16:48:32 +02:00
committed by GitHub
parent d949dfb64c
commit 427715a38a
6 changed files with 6 additions and 6 deletions

View File

@@ -129,7 +129,7 @@ internal class MappingConverter
{ {
foreach (var header in response.ResponseMessage.Headers) foreach (var header in response.ResponseMessage.Headers)
{ {
sb.AppendLine($" .WithHeader(\"{header.Key})\", {ToValueArguments(header.Value.ToArray())})"); sb.AppendLine($" .WithHeader(\"{header.Key}\", {ToValueArguments(header.Value.ToArray())})");
} }
} }

View File

@@ -11,7 +11,7 @@
.WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc") .WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc")
.WithProbability(0.3) .WithProbability(0.3)
.RespondWith(Response.Create() .RespondWith(Response.Create()
.WithHeader("Keep-Alive)", "test") .WithHeader("Keep-Alive", "test")
.WithBody("bbb") .WithBody("bbb")
.WithDelay(12345) .WithDelay(12345)
.WithTransformer() .WithTransformer()

View File

@@ -12,7 +12,7 @@ builder
.WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc") .WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc")
.WithProbability(0.3) .WithProbability(0.3)
.RespondWith(Response.Create() .RespondWith(Response.Create()
.WithHeader("Keep-Alive)", "test") .WithHeader("Keep-Alive", "test")
.WithBody("bbb") .WithBody("bbb")
.WithDelay(12345) .WithDelay(12345)
.WithTransformer() .WithTransformer()

View File

@@ -11,7 +11,7 @@
.WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc") .WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc")
.WithProbability(0.3) .WithProbability(0.3)
.RespondWith(Response.Create() .RespondWith(Response.Create()
.WithHeader("Keep-Alive)", "test") .WithHeader("Keep-Alive", "test")
.WithBody("bbb") .WithBody("bbb")
.WithDelay(12345) .WithDelay(12345)
.WithTransformer() .WithTransformer()

View File

@@ -12,7 +12,7 @@ server
.WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc") .WithGuid("8e7b9ab7-e18e-4502-8bc9-11e6679811cc")
.WithProbability(0.3) .WithProbability(0.3)
.RespondWith(Response.Create() .RespondWith(Response.Create()
.WithHeader("Keep-Alive)", "test") .WithHeader("Keep-Alive", "test")
.WithBody("bbb") .WithBody("bbb")
.WithDelay(12345) .WithDelay(12345)
.WithTransformer() .WithTransformer()

View File

@@ -18,7 +18,7 @@ server
) )
.WithGuid("1b731398-4a5b-457f-a6e3-d65e541c428f") .WithGuid("1b731398-4a5b-457f-a6e3-d65e541c428f")
.RespondWith(Response.Create() .RespondWith(Response.Create()
.WithHeader("hk)", "hv") .WithHeader("hk", "hv")
.WithBody("2") .WithBody("2")
); );