public void Dispose() { if (_loopbackHttpServer != null) { _loopbackHttpServer.Stop(); _loopbackHttpServer.Dispose(); _loopbackHttpServer = null; } }
public SoapRouterServiceMock(string webServiceAppEndpoint) { if (!webServiceAppEndpoint.StartsWith("/")) { webServiceAppEndpoint = "/" + webServiceAppEndpoint; } if (!webServiceAppEndpoint.EndsWith("/")) { webServiceAppEndpoint = webServiceAppEndpoint + "/"; } _testRunnerServerUri = UnitaryWebServer.ResolveLocalRandomPrefix(webServiceAppEndpoint); _loopbackHttpServer = new UnitaryWebServer(_testRunnerServerUri, this.RouteResponse); _loopbackHttpServer.Run(); }