Example #1
0
 public static Questions And(this Questions questions)
 => questions;
Example #2
0
 public static Questions HaveHeader(this Questions questions, string headerKey, string withValue)
 => questions.Add(new ShouldHaveHeader(headerKey, withValue));
Example #3
0
 public static Questions HaveContentsWith(this Questions questions, string path, params string[] items)
 => questions.Add(new ShouldHaveContentsWith(path, items));
Example #4
0
 public static Questions HaveContentType(this Questions q, string contentType)
 => q.Add(new ShouldHaveContentType(contentType));
Example #5
0
 public static Questions HaveHeader(this Questions questions, string headerKey, Func <IEnumerable <string>, bool> predicate)
 => questions.Add(new ShouldHaveHeader(headerKey, predicate));
Example #6
0
 public static Questions HaveContentType(this Questions q, MediaTypeHeaderValue contentType)
 => q.Add(new ShouldHaveContentType(contentType));
Example #7
0
 public static Questions HaveStatusCode(this Questions q, HttpStatusCode code)
 => q.HaveStatusCode(code, (Uri)null);
Example #8
0
 public static Questions HaveStatusCode(this Questions q, HttpStatusCode code, string location)
 => q.HaveStatusCode(code, new Uri(location, UriKind.Relative));
Example #9
0
 public static Questions HaveStatusCode(this Questions q, HttpStatusCode code, Uri location = null)
 => q.Add(new ShouldHaveStatusCode(code, location));
Example #10
0
 public static Questions Should(this Questions questions)
 => questions;