예제 #1
0
 private static bool RequestAndExpectedHttpMethodAndPathsMatch(IOwinContext context, HttpRequestExpectation requestExpectation)
 {
     return
         (requestExpectation.MatchesActualPath(context.Request.Uri.GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped)) &&
          requestExpectation.MatchesActualHttpMethod(context.Request.Method) &&
          requestExpectation.MatchesActualBody(context.Request.Body));
 }
예제 #2
0
 private static bool RequestAndExpectedHttpMethodAndPathsMatch(IOwinContext context, HttpRequestExpectation requestExpectation, string actualBody)
 {
     return
         requestExpectation.MatchesActualPath(context.Request.Uri.GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped)) &&
         requestExpectation.MatchesActualHttpMethod(context.Request.Method) &&
         requestExpectation.MatchesActualBody(actualBody);
 }