Sha256: cbb0bc2698ce0aa0c00b3063d5d54b96c02a9093ab06dbbe65c41ad30ffca0fc
Contents?: true
Size: 1.52 KB
Versions: 3
Compression:
Stored size: 1.52 KB
Contents
require_relative '../test/core_pro_test_base' require_relative '../lib/corepro/external_account' class AcExternalAccountPrepaidTest < CoreProTestBase def test_create ea = CorePro::ExternalAccount.new ea.customerId = @@prepaidCustomerId ea.nickName = "Ext acct #{@@timestamp}" ea.tag = "tag #{@@timestamp}" ea.accountNumber = '00001234' ea.firstName = 'Jimmy' ea.lastName = 'Jameson' ea.type = 'Client' externalAccountId = ea.create @@prepaidConn, nil @@prepaidExternalAccountId = externalAccountId assert @@prepaidExternalAccountId > 0 end def test_get ea = CorePro::ExternalAccount.get @@prepaidCustomerId, @@prepaidExternalAccountId, @@prepaidConn, nil assert_instance_of CorePro::ExternalAccount, ea assert_equal @@prepaidExternalAccountId, ea.externalAccountId end def test_getByTag ea = CorePro::ExternalAccount.getByTag @@prepaidCustomerId, "tag #{@@timestamp}", @@prepaidConn, nil assert_instance_of CorePro::ExternalAccount, ea assert_equal @@prepaidExternalAccountId, ea.externalAccountId end def test_list eas = CorePro::ExternalAccount.list @@prepaidCustomerId, @@prepaidConn, nil assert eas != nil && eas.length > 0 end def test_update ea = CorePro::ExternalAccount.new ea.customerId = @@prepaidCustomerId ea.externalAccountId = @@prepaidExternalAccountId ea.nickName = "Updated ext act #{@@timestamp}" externalAccountId = ea.update @@prepaidConn, nil assert_equal @@prepaidExternalAccountId, externalAccountId end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
corepro-0.0.7 | test/ac_external_account_prepaid_test.rb |
corepro-0.0.6 | test/ac_external_account_prepaid_test.rb |
corepro-0.0.5 | test/ac_external_account_prepaid_test.rb |