public void SampleNotification_ReturnsANotificationForDisputeOpenedWebhook()
{
Dictionary<string, string> sampleNotification = gateway.WebhookTesting.SampleNotification(WebhookKind.DISPUTE_OPENED, "my_id");
WebhookNotification notification = gateway.WebhookNotification.Parse(sampleNotification["bt_signature"], sampleNotification["bt_payload"]);
Assert.AreEqual(WebhookKind.DISPUTE_OPENED, notification.Kind);
Assert.AreEqual("my_id", notification.Dispute.Id);
Assert.AreEqual("my_id", notification.Dispute.TransactionDetails.Id);
Assert.AreEqual("250.00", notification.Dispute.TransactionDetails.Amount);
Assert.AreEqual(DisputeStatus.OPEN, notification.Dispute.Status);
Assert.AreEqual(DisputeKind.CHARGEBACK, notification.Dispute.Kind);
Assert.AreEqual(new DateTime(2014, 3, 21), notification.Dispute.DateOpened);
}