Braintree.Tests.Integration.SubscriptionIntegrationTest.Create_WithBadPlanId C# (CSharp) Метод

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

private Create_WithBadPlanId ( ) : void
Результат void
        public void Create_WithBadPlanId()
        {
            SubscriptionRequest createRequest = new SubscriptionRequest
            {
                PaymentMethodToken = creditCard.Token,
                PlanId = "noSuchPlanId"
            };

            Result<Subscription> result = gateway.Subscription.Create(createRequest);

            Assert.IsFalse(result.IsSuccess());
            Assert.AreEqual(ValidationErrorCode.SUBSCRIPTION_PLAN_ID_IS_INVALID, result.Errors.ForObject("Subscription").OnField("PlanId")[0].Code);
        }
SubscriptionIntegrationTest