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

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

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

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

            Assert.AreEqual(WebhookKind.DISPUTE_WON, 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);
            Assert.AreEqual(new DateTime(2014, 3, 22), notification.Dispute.DateWon);
        }