Also reset scenarios when the mappings are reset.

This commit is contained in:
Stef Heyenrath committed 2017-10-09 09:27:49 +02:00
1 parent fce60f273d
commit eff21473e3
2 files changed
+2 -2

No files matched your search

@@ -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
@@ -1,5 +1,4 @@
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;