예제 #1
0
 /// <summary>
 /// Tests if an HttpResponseMessage contains the Set-Cookie
 /// header that would set the cookie with the provided name
 /// </summary>
 /// <param name="have"></param>
 /// <param name="name"></param>
 /// <returns>Continuation to further test the cookie, if found</returns>
 public static IMore <Cookie> Cookie(
     this IHave <HttpResponseMessage> have,
     string name
     )
 {
     return(have.Cookie(name, NULL_STRING));
 }
예제 #2
0
 /// <summary>
 /// Tests if an HttpResponseMessage contains the Set-Cookie
 /// header that would set the cookie with the provided name
 /// </summary>
 /// <param name="have"></param>
 /// <param name="name"></param>
 /// <param name="customMessage"></param>
 /// <returns>Continuation to further test the cookie, if found</returns>
 public static IMore <Cookie> Cookie(
     this IHave <HttpResponseMessage> have,
     string name,
     string customMessage
     )
 {
     return(have.Cookie(name, () => customMessage));
 }