Skip to content

Mapping: generated C# code is missing InScenario and WillSetStateTo #1346

@StefH

Description

@StefH

Define mapping:

_server
  .Given(Request.Create()
    .WithPath("/todo/items")
    .UsingGet())
  .InScenario("To do list")
  .WillSetStateTo("TodoList State Started")
  .RespondWith(Response.Create()
    .WithBody("Buy milk"));

--> generated C# code is missing InScenario and WillSetStateTo

builder
    .Given(Request.Create()
        .UsingMethod("GET")
        .WithPath(new WildcardMatcher(WireMock.Matchers.MatchBehaviour.AcceptOnMatch, "/todo/items", false, WireMock.Matchers.MatchOperator.Or))
    )
    .WithGuid("98fae52e-76df-47d9-876f-2ee32e931005")
    .RespondWith(Response.Create()
        .WithBody("Buy milk")
    );

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions