mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-27 18:52:48 +01:00
Add TimesInSameState to MappingModel (#1345)
* Add TimesInSameState to MappingModel * fix tests
This commit is contained in:
1 parent
a5558777e2
commit
faffc56484
11 files changed
+102
-16
No files matched your search
@@ -299,7 +299,7 @@ namespace WireMock.Owin
|
||||
scenario.Counter++;
|
||||
|
||||
// Only if the number of times this state is executed equals the required StateTimes, proceed to next state and reset the counter to 0
|
||||
if (scenario.Counter == (mapping.StateTimes ?? 1))
|
||||
if (scenario.Counter == (mapping.TimesInSameState ?? 1))
|
||||
{
|
||||
scenario.NextState = mapping.NextState;
|
||||
scenario.Counter = 0;
|
||||
|
||||
Reference in new issue
Block a user