Ejemplo n.º 1
0
        public async Task GetAccountsAsync()
        {
            // Act
            _api.Login();
            IReadOnlyList <AccountModel> accounts = await _api.GetAccountsAsync(null).ConfigureAwait(false);

            _api.Logout();

            Assert.IsNotNull(accounts);
            Assert.AreEqual(1, accounts.Count);
            Assert.AreEqual(1, accounts[0].Balances.Count);
        }
Ejemplo n.º 2
0
 public override void GetAccounts(ProviderModel provider, Action <object> update)
 {
     _api.GetAccountsAsync(update).Wait();
 }
Ejemplo n.º 3
0
 public override void GetAccounts(ProviderModel provider, Action <object> update)
 {
     IReadOnlyList <AccountModel> accounts = _api.GetAccountsAsync(update).Result;
 }