public void SetRequestPath(string path) { var pathString = new PathString(path); HttpRequestMock .Setup(m => m.Path) .Returns(pathString); }
public void SetQueryString(string queryString) => HttpRequestMock .Setup(m => m.QueryString) .Returns(new QueryString(queryString));
public void SetHost(string host) => HttpRequestMock .Setup(m => m.Host) .Returns(new HostString(host));
public void SetRequestMethod(string method) => HttpRequestMock .Setup(m => m.Method) .Returns(method);
public void SetHttps(bool isHttps) => HttpRequestMock .Setup(m => m.IsHttps) .Returns(isHttps);