getting and inserting cash accounts

For automated tests, I need to get CCashAccounts from the database and insert CCashAccounts into the database.  How can I do this?  Is there some parent object I need to use to obtain or insert CCashAccounts?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

found how to get CCashAccount's

Looks like I can get it through CReferenceData:

iboAdmin.ReferenceData.GetCashAccount(string)

It looks like a bunch of random stuff is available through iboAdmin.ReferenceData.

It would be excellent if the iBO API documentation would indicate how to get objects like CCashAccount's when a public constructor is not present.  It took me a couple hours to find it digging w/ Reflector.  I would gladly give my time to update the documentation with this kind of information to save others hours of time if I were given the option.