[Tests] Pass Port to the fake http context

This commit is contained in:
nicolas.dorier 2018-10-09 23:32:47 +09:00
parent 3d85dace38
commit 57ab001c0c

View file

@ -201,7 +201,7 @@ namespace BTCPayServer.Tests
public T GetController<T>(string userId = null, string storeId = null) where T : Controller
{
var context = new DefaultHttpContext();
context.Request.Host = new HostString("127.0.0.1");
context.Request.Host = new HostString("127.0.0.1", Port);
context.Request.Scheme = "http";
context.Request.Protocol = "http";
if (userId != null)