public Validate ( object sender, ValidationEventArgs e ) : void | ||
sender | object | The sender. |
e | ValidationEventArgs | The |
Результат | void |
public override void Validate(object sender, ValidationEventArgs e)
{
if (e.Response.IsBodyEmpty)
{
e.Message = "The response body is empty as expected.";
}
else
{
e.IsValid = false;
e.Message = string.Format("The response body is not empty. Actual body: {0}.", e.Response.BodyString);
}
}
}