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

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