public IHttpRequestMock Path(IHttpRequestPathPattern httpRequestPathPattern) { if (httpRequestPathPattern == null) { throw new ArgumentNullException(nameof(httpRequestPathPattern)); } httpRequestMock.Path = httpRequestPathPattern; return(this); }
public IHttpRequestMock WhenRequestPatch(IHttpRequestPathPattern pathPattern) { return(CreateMockBuilder() .Method("PATCH") .Path(pathPattern)); }
public IHttpRequestMock WhenRequestDelete(IHttpRequestPathPattern pathPattern) { return(CreateMockBuilder() .Method("DELETE") .Path(pathPattern)); }