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