public void ValidateWebhook()
{
var webhook = new Webhook
{
Resource = ResourceType.CALL_BROADCAST,
Events = new HashSet<ResourceEvent> { ResourceEvent.FINISHED, ResourceEvent.STARTED, ResourceEvent.UNKNOWN }
};
var ex = Assert.Throws<ModelValidationException>(() => Client.WebhooksApi.Update(webhook));
Assert.That(ex.Message, Is.StringContaining("Event [unknown] is unsupported for CallBroadcast resource"));
}