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

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

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

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

            Assert.AreEqual(WebhookKind.SUBSCRIPTION_WENT_PAST_DUE, notification.Kind);
            Assert.AreEqual("my_id", notification.Subscription.Id);
            TestHelper.AreDatesEqual(DateTime.Now.ToUniversalTime(), notification.Timestamp.Value);
        }