示例#1
0
        public void reverseTransactionTest()
        {
            if (string.IsNullOrEmpty(TestConfig.REVERSE_TX_ID))
            {
                return;
            }
            MultiTransactionResponse response = client.reverseTransaction(TestConfig.REVERSE_TX_ID);

            Assert.IsNotNull(response.transactions);
            Assert.IsTrue(response.isSuccessful());
            Assert.AreEqual(TestConfig.STATUS_REVERSAL_REQUESTED, response.getStatus());
        }
示例#2
0
        public void getTransactionsByIdTest()
        {
            if (string.IsNullOrEmpty(TestConfig.TRANSACTION_SEARCH_ID))
            {
                return;
            }
            MultiTransactionResponse response = client.getTransactions(TestConfig.TRANSACTION_SEARCH_ID);

            Assert.IsNotNull(response.transactions);
            Assert.IsTrue(response.isSuccessful());
            Assert.AreNotEqual(0, response.transactions.Count());
            Transaction transaction = response.transactions[0];

            Assert.AreEqual(TestConfig.TRANSACTION_SEARCH_ID, transaction.transactionId);
        }
示例#3
0
        public void getTransactionsTest()
        {
            MultiTransactionResponse response = client.getTransactions();

            Assert.IsNotNull(response.transactions);
            Assert.IsTrue(response.isSuccessful());
            if (response.transactions.Count() > 0)
            {
                Transaction transaction = response.transactions[0];
                Assert.IsNotNull(transaction.transactionId);
                Assert.IsNotNull(transaction.transactionDate);
                Assert.IsNotNull(transaction.transactionAmount);
                Assert.IsNotNull(transaction.transactionMethod);
            }
        }
示例#4
0
        public void getTransactionsByDateTest()
        {
            if (string.IsNullOrEmpty(TestConfig.TRANSACTION_SEARCH_DATE_START) ||
                string.IsNullOrEmpty(TestConfig.TRANSACTION_SEARCH_DATE_END))
            {
                return;
            }
            MultiTransactionResponse response = client.getTransactions("", "", "",
                                                                       TestConfig.TRANSACTION_SEARCH_DATE_START, TestConfig.TRANSACTION_SEARCH_DATE_END,
                                                                       "", "", "", 0.0, 100000000.0, "", "", "", "", 10, 0);

            Assert.IsNotNull(response.transactions);
            Assert.IsTrue(response.isSuccessful());
            if (response.transactions.Count() > 0)
            {
                Transaction transaction = response.transactions[0];
                Assert.IsNotNull(transaction.transactionId);
                Assert.IsNotNull(transaction.transactionDate);
                Assert.IsNotNull(transaction.transactionMethod);
                Assert.IsNotNull(transaction.transactionAmount);
            }
        }