コード例 #1
0
        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));
 }