Пример #1
0
 private ListAccountsResponse GetAccounts()
 {
     var authContainer = GetAuthenticationContainer();
     var accountClient = new AccountClient(authContainer);
     var response = accountClient.ListAccounts().Result;
     return response;
 }
Пример #2
0
        public void TestGetAccountHistory()
        {
            var accounts = GetAccounts().Accounts;
            foreach (var account in accounts)
            {
                var authContainer = GetAuthenticationContainer();
                var accountClient = new AccountClient(authContainer);
                var response = accountClient.GetAccountHistory(account.Id).Result;

                Assert.IsTrue(response.AccountHistoryRecords != null);
            }
        }
Пример #3
0
        public void TestGetAccountHolds()
        {
            var accounts = GetAccounts().Accounts;
            // Do something with the response.

            foreach (var account in accounts)
            {
                var authContainer = GetAuthenticationContainer();
                var accountClient = new AccountClient(authContainer);
                var response = accountClient.GetAccountHolds(account.Id).Result;

                Assert.IsTrue(response.AccountHolds != null);
            }
        }