Example #1
0
 private void TestGetAccountAssets()
 {
     using (Logger = new TestsessionLogger(_logger))
     {
         var result = _service.GetAccountAssets(TestSettings.Account1.AccountRs, includeAssetInfo: false).Result;
         VerifyAccountAssets(result, 3, false);
         result = _service.GetAccountAssets(TestSettings.Account1.AccountRs, includeAssetInfo: true).Result;
         VerifyAccountAssets(result, 3, true);
         result = _service.GetAccountAssets(TestSettings.Account1.AccountRs, TestSettings.ExistingAssetId, true).Result;
         VerifyAccountAssets(result, 1, true);
     }
 }
Example #2
0
        private async Task <List <AccountAsset> > GetAssets(string addressRs)
        {
            var accountAssetReply = await assetExchangeService.GetAccountAssets(addressRs, includeAssetInfo : true);

            return(accountAssetReply.AccountAssets);
        }