Skip to content

Commit

Permalink
Calling Reset also resets the scenarios (#1031)
Browse files Browse the repository at this point in the history
* Calling Reset also resets the scenarios

* .
  • Loading branch information
StefH authored Dec 7, 2023
1 parent 1174acc commit c6c7ba1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/WireMock.Net.Abstractions/Server/IWireMockServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public interface IWireMockServer : IDisposable
void RemoveAuthentication();

/// <summary>
/// Resets LogEntries and Mappings.
/// Resets LogEntries, Mappings and Scenarios.
/// </summary>
void Reset();

Expand Down
2 changes: 2 additions & 0 deletions src/WireMock.Net/Server/WireMockServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ public void Reset()
{
ResetLogEntries();

ResetScenarios();

ResetMappings();
}

Expand Down

0 comments on commit c6c7ba1

Please sign in to comment.