diff --git a/Scenarios-and-States.md b/Scenarios-and-States.md index e7eb4fa..022b802 100644 --- a/Scenarios-and-States.md +++ b/Scenarios-and-States.md @@ -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" + } +} +``` \ No newline at end of file