Exemplo n.º 1
0
        public void It_should_withdraw_from_funding_source()
        {
            // arrange
            var fundingService = new DwollaFundingService();

            var options = new TransferOptions {
                OAuthToken = TestOAuthToken,
                Pin = TestPin,
                FundsSource = TestFundId,
                Amount = 1
            };

            // act
            DwollaResponse<DwollaTransaction> response = fundingService
                .Withdraw(options);

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