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

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

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

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

          Assert.AreEqual(WebhookKind.PARTNER_MERCHANT_DECLINED, notification.Kind);
          Assert.AreEqual("abc123", notification.PartnerMerchant.PartnerMerchantId);
        }