Braintree.Tests.Integration.MerchantAccountTest.Create_DeprecatedWithId C# (CSharp) Метод

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

private Create_DeprecatedWithId ( ) : void
Результат void
        public void Create_DeprecatedWithId()
        {
            Random random = new Random();
            int randomNumber = random.Next(0, 10000);
            var subMerchantAccountId = "sub_merchant_account_id_" + randomNumber;
            var request = deprecatedCreateRequest(subMerchantAccountId);
            Result<MerchantAccount> result = gateway.MerchantAccount.Create(request);
            Assert.IsTrue(result.IsSuccess());

            MerchantAccount merchantAccount = result.Target;
            Assert.AreEqual(MerchantAccountStatus.PENDING, merchantAccount.Status);
            Assert.AreEqual("sandbox_master_merchant_account", merchantAccount.MasterMerchantAccount.Id);
            Assert.IsTrue(merchantAccount.IsSubMerchant);
            Assert.IsFalse(merchantAccount.MasterMerchantAccount.IsSubMerchant);
            Assert.AreEqual(subMerchantAccountId, merchantAccount.Id);
        }