public IHttpRequestMock Path(IHttpRequestPathPattern httpRequestPathPattern)
        {
            if (httpRequestPathPattern == null)
            {
                throw new ArgumentNullException(nameof(httpRequestPathPattern));
            }

            httpRequestMock.Path = httpRequestPathPattern;
            return(this);
        }
示例#2
0
 public IHttpRequestMock WhenRequestPatch(IHttpRequestPathPattern pathPattern)
 {
     return(CreateMockBuilder()
            .Method("PATCH")
            .Path(pathPattern));
 }
示例#3
0
 public IHttpRequestMock WhenRequestDelete(IHttpRequestPathPattern pathPattern)
 {
     return(CreateMockBuilder()
            .Method("DELETE")
            .Path(pathPattern));
 }