/// <summary> /// Requires the incoming HTTP request to contain the specified text in the body. /// </summary> /// <param name="stump">The <see cref="Stump"/> intercepting incoming HTTP requests.</param> /// <param name="text">The text that must be contained within the body.</param> /// <returns>The calling <see cref="Stump"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="stump"/> is <c>null</c>.</exception> public static Stump MatchingBodyContaining(this Stump stump, string text) { stump = stump ?? throw new ArgumentNullException(nameof(stump)); var textArray = new[] { text }; var stumpResponse = stump.MatchingBodyContaining(textArray); return(stumpResponse); }