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