WireMock-Net / WireMock.Net

WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
Apache License 2.0
1.35k stars 197 forks source link

Reset resets only mappings and logentries, not scenarios. #1030

Closed MJLHThomassenHadrian closed 6 months ago

MJLHThomassenHadrian commented 6 months ago

Describe the bug

Calling WireMockServer.Reset() only resets Mappings and LogEntries, not scenarios. Since there are 3 methods for resetting them all seeprately (WireMockServer.ResetLogEntries(), WireMockServer.ResetMappings() and WireMockServer.ResetScenarios()) i would expet Reset() to reset everything, not just 2 of the 3.

Expected behavior:

Scenarios are also reset.

StefH commented 6 months ago

good point

StefH commented 6 months ago

https://github.com/WireMock-Net/WireMock.Net/pull/1031

MJLHThomassenHadrian commented 6 months ago

@StefH thanks!