Fix unit-tests

This commit is contained in:
Stef Heyenrath
2017-01-31 07:36:51 +01:00
parent de914ef24d
commit 8a4e5b5790
11 changed files with 70 additions and 41 deletions

View File

@@ -22,10 +22,10 @@ namespace WireMock.Net.Tests.Http
public void Should_call_handler_on_request()
{
// given
var port = Ports.FindFreeTcpPort();
var port = PortUtil.FindFreeTcpPort();
bool called = false;
var urlPrefix = "http://localhost:" + port + "/";
var server = new TinyHttpServer(urlPrefix, ctx => called = true);
var server = new TinyHttpServer(ctx => called = true, urlPrefix);
server.Start();
// when