Пример #1
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);
            }
        }
Пример #2
0
        public async Task TestGetAccountHistoryAsync()
        {
            var accounts = await GetAccounts();

            foreach (var account in accounts.Accounts)
            {
                var authContainer = GetAuthenticationContainer();
                var accountClient = new AccountClient(authContainer);
                //ExchangeClientBase.IsSandbox = true;
                var response = await accountClient.GetAccountHistory(account.Id);

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