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)); }
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); }