mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Feature: Expose scenario states #119
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @benjamin-bader on GitHub (Jul 5, 2018).
I'd like to be able to ask the server what the current state is for a given feature, for example to concisely verify that all expected requests were received, e.g.
One could get the same effect today by groveling through the LogEntries, but this is tedious and duplicates the logical chain set up by the scenario itself.
@StefH commented on GitHub (Jul 8, 2018):
Good idea.
I need to extend the admin api with some get request to retrieve the state from a certain scenario.
Also add this logic to the fluent interface.
@StefH commented on GitHub (Jul 17, 2018):
Hello @benjamin-bader,
I've added some functionality in this branch, you can already take a look how it can be used as you proposed here:
https://github.com/WireMock-Net/WireMock.Net/blob/Expose_scenario_states/test/WireMock.Net.Tests/StatefulBehaviorTests.cs#L66
@benjamin-bader commented on GitHub (Jul 17, 2018):
Oh, cool! I was going to try my hand at this, but you've beaten me to it. Thank you for taking the effort!
@StefH commented on GitHub (Jul 18, 2018):
OK, I'll change the code and create a new NuGet in some time...