Ejemplo n.º 1
0
 public static ApiQuestions HaveResult <T>(this ApiQuestions questions, T resembling, IEqualityComparer <T> comparer)
 => questions.Add(new ShouldHaveResultOfType <T>())
 .Add(new ShouldHaveResult <T>(resembling, comparer));
Ejemplo n.º 2
0
 public static ApiQuestions HaveResultOfType <T>(this ApiQuestions questions)
 => questions.Add(new ShouldHaveResultOfType <T>());
Ejemplo n.º 3
0
 public static ApiQuestions HaveCreatedStatusCode(this ApiQuestions questions, Uri location = null)
 => questions.Add(new ShouldHaveApiCreatedStatusCode(location));
Ejemplo n.º 4
0
 public static ApiQuestions HaveContentType(this ApiQuestions questions, MediaTypeHeaderValue contentType)
 => questions.Add(new ShouldHaveApiContentType(contentType));
Ejemplo n.º 5
0
 public static ApiQuestions HaveStatusCode(this ApiQuestions questions, HttpStatusCode code)
 => questions.Add(new ShouldHaveApiStatusCode(code));