Braintree.Tests.WebhookNotificationTest.SampleNotification_ReturnsANotificationForDisputeLostWebhook C# (CSharp) Метод

SampleNotification_ReturnsANotificationForDisputeLostWebhook() приватный Метод

private SampleNotification_ReturnsANotificationForDisputeLostWebhook ( ) : void
Результат void
        public void SampleNotification_ReturnsANotificationForDisputeLostWebhook()
        {
            Dictionary<string, string> sampleNotification = gateway.WebhookTesting.SampleNotification(WebhookKind.DISPUTE_LOST, "my_id");

            WebhookNotification notification = gateway.WebhookNotification.Parse(sampleNotification["bt_signature"], sampleNotification["bt_payload"]);

            Assert.AreEqual(WebhookKind.DISPUTE_LOST, notification.Kind);
            Assert.AreEqual("my_id", notification.Dispute.Id);
            Assert.AreEqual(DisputeKind.CHARGEBACK, notification.Dispute.Kind);
            Assert.AreEqual(new DateTime(2014, 3, 21), notification.Dispute.DateOpened);
        }