Exemplo n.º 1
0
 public async void ListAddresses_NegativeConfirmations_ArgumentOutOfRangeException()
 {
     await Assert.ThrowsAsync <ArgumentOutOfRangeException>(async() =>
     {
         using (BlockchainApiHelper apiHelper = UnitTestUtil.GetFakeHelper())
         {
             WalletHelper walletHelper = this.GetWalletHelper(apiHelper);
             await walletHelper.ListAddressesAsync(-1);
         }
     });
 }
Exemplo n.º 2
0
        public async void GetAddresses_Valid()
        {
            using (BlockchainApiHelper apiHelper = new BlockchainApiHelper())
            {
                WalletHelper   walletHelper = apiHelper.CreateWalletHelper(WalletTests.WALLET_ID, WalletTests.WALLET_PASSWORD, WalletTests.WALLET_PASSWORD2);
                List <Address> addresses    = await walletHelper.ListAddressesAsync();

                Assert.NotNull(addresses);
                Assert.NotEmpty(addresses);
                Assert.True(addresses.Any(a => string.Equals(a.AddressStr, WalletTests.FIRST_ADDRESS)));
            }
        }