public void ListForAccount() { String s = Factories.GetMockPlanCode(); Plan p = new Plan(s, Factories.GetMockPlanName()); p.Description = "Subscription Test"; p.UnitAmountInCents.Add("USD", 400); p.Create(); String s2 = Factories.GetMockPlanCode(); Plan p2 = new Plan(s2, Factories.GetMockPlanName()); p2.Description = "Subscription Test"; p2.UnitAmountInCents.Add("USD", 500); p2.Create(); String a = Factories.GetMockAccountName(); Account acct = new Account(a, "New Txn", "User", "4111111111111111", DateTime.Now.Month, DateTime.Now.Year + 1); Subscription sub = new Subscription(acct, p, "USD"); sub.Create(); Subscription sub2 = new Subscription(acct, p2, "USD"); sub2.Create(); SubscriptionList list = acct.GetSubscriptions(Subscription.SubstriptionState.all); Assert.IsTrue(list.Count > 0); p.Deactivate(); p2.Deactivate(); }