Exemplo n.º 1
0
        public void LookupMissingInfo()
        {
            RecurlyAccount newAcct = Factories.NewAccount("Lookup Missing Billing Info");

            newAcct.Create();

            RecurlyBillingInfo billingInfo = RecurlyBillingInfo.Get(newAcct.AccountCode);

            Assert.IsNull(billingInfo);
        }
Exemplo n.º 2
0
        public void LookupBillingInfo()
        {
            RecurlyAccount newAcct = Factories.NewAccount("Lookup Billing Info");

            newAcct.Create();

            RecurlyBillingInfo billingInfo = Factories.NewBillingInfo(newAcct);

            billingInfo.Update();

            RecurlyBillingInfo lookupBilling = RecurlyBillingInfo.Get(newAcct.AccountCode);

            Assert.AreEqual(billingInfo.Address1, lookupBilling.Address1);
            Assert.AreEqual(billingInfo.PostalCode, lookupBilling.PostalCode);
            Assert.IsNotNullOrEmpty(billingInfo.CreditCard.CreditCardType);
        }