mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 15:23:47 +01:00
Also reset scenarios when the mappings are reset.
This commit is contained in:
@@ -120,7 +120,6 @@ namespace WireMock.Server
|
||||
Given(Request.Create().WithPath(AdminRequests + "/find").UsingPost()).RespondWith(new DynamicResponseProvider(RequestsFind));
|
||||
|
||||
|
||||
// __admin/scenarios
|
||||
// __admin/scenarios
|
||||
Given(Request.Create().WithPath(AdminScenarios).UsingGet()).RespondWith(new DynamicResponseProvider(ScenariosGet));
|
||||
Given(Request.Create().WithPath(AdminScenarios).UsingDelete()).RespondWith(new DynamicResponseProvider(ScenariosReset));
|
||||
@@ -346,6 +345,8 @@ namespace WireMock.Server
|
||||
{
|
||||
ResetMappings();
|
||||
|
||||
ResetScenarios();
|
||||
|
||||
return new ResponseMessage { Body = "Mappings deleted" };
|
||||
}
|
||||
#endregion Mappings
|
||||
|
||||
Reference in New Issue
Block a user