예제 #1
0
    public void SetRequestPath(string path)
    {
        var pathString = new PathString(path);

        HttpRequestMock
        .Setup(m => m.Path)
        .Returns(pathString);
    }
예제 #2
0
 public void SetQueryString(string queryString) =>
 HttpRequestMock
 .Setup(m => m.QueryString)
 .Returns(new QueryString(queryString));
예제 #3
0
 public void SetHost(string host) =>
 HttpRequestMock
 .Setup(m => m.Host)
 .Returns(new HostString(host));
예제 #4
0
 public void SetRequestMethod(string method) =>
 HttpRequestMock
 .Setup(m => m.Method)
 .Returns(method);
예제 #5
0
 public void SetHttps(bool isHttps) =>
 HttpRequestMock
 .Setup(m => m.IsHttps)
 .Returns(isHttps);