Beispiel #1
0
        public void ShouldPrepareTransfer()
        {
            var transfers = new List <Transfer>
            {
                new Transfer(TEST_ADDRESS_WITH_CHECKSUM_SECURITY_LEVEL_2, 100, TEST_MESSAGE, TEST_TAG),
            };

            var trytes = _iotaClient.PrepareTransfers(TEST_SEED1, 2, transfers.ToArray(), null, null, false);

            Assert.IsNotNull(trytes);
            Assert.IsFalse(trytes.Count == 0);
        }
        public void shouldPrepareTransfer()
        {
            List <Transfer> transfers = new List <Transfer>();

            transfers.Add(new Transfer(TEST_ADDRESS_WITH_CHECKSUM, 0, TEST_MESSAGE, TEST_TAG));
            transfers.Add(new Transfer(TEST_ADDRESS_WITH_CHECKSUM, 1, TEST_MESSAGE, TEST_TAG));
            List <string> trytes = null;

            try
            {
                trytes = iotaClient.PrepareTransfers(TEST_SEED1, transfers.ToArray(), null, null);
            }
            catch (NotEnoughBalanceException ex)
            {
                Console.WriteLine(ex.ToString());
            }
            Assert.IsNotNull(trytes);
            Assert.IsFalse(trytes.Count == 0);
        }