Updated Scenarios and States (markdown)

Stef Heyenrath
2017-10-07 17:40:29 +02:00
parent a6c18706b5
commit 84c6438bfb

@@ -48,3 +48,21 @@ Check.That(postResponse.StatusCode).Equals(HttpStatusCode.Created);
string getResponse2 = await new HttpClient().GetStringAsync(url + "/todo/items");
Check.That(getResponse2).Equals("Buy milk;Cancel newspaper subscription");
```
The first Scenario and State definition can also be used in the JSON Admin interface like:
```js
{
"Scenario": "To do list",
"SetStateTo": "TodoList State Started",
"Request": {
"Path": "/todo/items",
"Methods": [
"get"
]
},
"Response": {
"StatusCode": 200,
"Body": "Buy milk"
}
}
```