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