Ejemplo n.º 1
0
 /// <summary>
 /// Testuje, či je stavový kód správy o odozve HTTP rovnaký ako kód HttpStatusCode.
 /// </summary>
 /// <param name="statusCode">Expected status code.</param>
 /// <returns>The same HTTP response message test builder.</returns>
 public IAndHttpHandlerResponseMessageTestBuilder ValidWithStatusCode(HttpStatusCode statusCode)
 {
     HttpResponseMessageValidator.ValidWithStatusCode(this.httpResponseMessage, statusCode, this.ThrowNewHttpResponseMessageAssertionException);
     return(this);
 }