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