mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 16:58:27 +02:00
Updated Scenarios and States (markdown)
@@ -5,7 +5,7 @@ WireMock.Net supports _State_ via the notion of _scenarios_. A scenario is essen
|
|||||||
For example, suppose we’re writing a to-do list application consisting of a rich client of some kind talking to a REST service. We want to test that our UI can read the to-do list, add an item and refresh itself, showing the updated list.
|
For example, suppose we’re writing a to-do list application consisting of a rich client of some kind talking to a REST service. We want to test that our UI can read the to-do list, add an item and refresh itself, showing the updated list.
|
||||||
|
|
||||||
Example test code:
|
Example test code:
|
||||||
``` c#
|
``` csharp
|
||||||
// Assign
|
// Assign
|
||||||
_server = WireMockServer.Start();
|
_server = WireMockServer.Start();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user