- accounts = TNY_LIST_IFACE(tny_list_new ());
- tny_account_store_iface_get_accounts (TNY_ACCOUNT_STORE_IFACE(acc_store), accounts,
- TNY_ACCOUNT_STORE_IFACE_TRANSPORT_ACCOUNTS);
+ fact = modest_tny_platform_factory_get_instance ();
+ acc_mgr = modest_tny_platform_factory_get_modest_account_mgr_instance (fact);
+ acc_store = tny_platform_factory_new_account_store (fact);
+
+ accounts = TNY_LIST(tny_simple_list_new ());
+ tny_account_store_get_accounts (TNY_ACCOUNT_STORE(acc_store), accounts,
+ TNY_ACCOUNT_STORE_TRANSPORT_ACCOUNTS);