GetTransactions() public method

Returns a list of transactions for this account, by transaction type
public GetTransactions ( TransactionList state = TransactionList.TransactionState.All, TransactionList type = TransactionList.TransactionType.All ) : RecurlyList
state TransactionList Transactions of this state will be retrieved. Optional, default: All.
type TransactionList Transactions of this type will be retrieved. Optional, default: All.
return RecurlyList
        public void ListTransactionsForAccount()
        {
            String a = Factories.GetMockAccountName();
            Account acct = new Account(a, "New Txn", "User",
                "4111111111111111", DateTime.Now.Month, DateTime.Now.Year + 1);
            acct.Create();

            Transaction t = new Transaction(acct.AccountCode, 3000, "USD");
            t.Create();

            Transaction t2 = new Transaction(acct.AccountCode, 200, "USD");
            t2.Create();

            TransactionList list = acct.GetTransactions();
            Assert.IsTrue(list.Count > 0);
        }