コード例 #1
0
        public void It_should_get_transaction_by_oauth_token_and_id()
        {
            // arrange
            const string transactionId = "1240235"; // Todo: Remove TransactionId

            var transactionService = new DwollaTransactionService();

            // act
            DwollaResponse<DwollaTransaction> response = transactionService
                .GetById(transactionId, TestOAuthToken);

            // assert
            response.Success.ShouldBeTrue();
        }
コード例 #2
0
        public void It_should_get_transaction_by_app_credentials()
        {
            // arrange
            const string transactionId = "1240235"; // Todo: Remove transactionId

            var transactionService = new DwollaTransactionService();

            // act
            DwollaResponse<DwollaTransaction> response = transactionService
                .GetById(transactionId, TestAppKey, TestAppSecret);

            // assert
            response.Success.ShouldBeTrue();
        }