C# Class Braintree.TestUtil.TestHelper

Exibir arquivo Open project: braintree/braintree_dotnet

Public Methods

Method Description
AreDatesEqual ( System.DateTime expected, System.DateTime actual ) : void
AssertIncludes ( string expected, string all ) : void
CompareModificationsById ( Braintree.Modification left, Braintree.Modification right ) : int
Create3DSVerification ( Braintree.BraintreeService service, string merchantAccountId, ThreeDSecureRequestForTests request ) : string
Escrow ( Braintree.BraintreeService service, string transactionId ) : void
GenerateDecodedClientToken ( BraintreeGateway gateway, ClientTokenRequest request = null ) : string
GenerateFuturePaymentPayPalNonce ( BraintreeGateway gateway ) : string
GenerateInvalidUsBankAccountNonce ( ) : string
GenerateOneTimePayPalNonce ( BraintreeGateway gateway ) : string
GenerateUnlockedNonce ( BraintreeGateway gateway ) : string
GenerateUnlockedNonce ( BraintreeGateway gateway, string creditCardNumber, string customerId ) : string
GenerateValidUsBankAccountNonce ( BraintreeGateway gateway ) : string
GetNonceForNewCreditCard ( BraintreeGateway gateway, object>.System.Collections.Generic.Dictionary creditCardDetails, string customerId = null ) : string
GetNonceForNewPaymentMethod ( BraintreeGateway gateway, object>.System.Collections.Generic.Dictionary @params, bool isCreditCard ) : string
GetNonceForPayPalAccount ( BraintreeGateway gateway, object>.System.Collections.Generic.Dictionary paypalAccountDetails ) : string
GetResponseContent ( HttpResponseMessage response ) : string
GetResponseContent ( HttpWebResponse response ) : string
IncludesSubscription ( ResourceCollection collection, Braintree.Subscription subscription ) : bool
QueryStringForTR ( Request trParams, Request req, string postURL, Braintree.BraintreeService service ) : string
extractIntParamFromJson ( string keyName, string json ) : int
extractParamFromJson ( string keyName, HttpResponseMessage response ) : string
extractParamFromJson ( string keyName, HttpWebResponse response ) : string
extractParamFromJson ( string keyName, string json ) : string

Method Details

AreDatesEqual() public static method

public static AreDatesEqual ( System.DateTime expected, System.DateTime actual ) : void
expected System.DateTime
actual System.DateTime
return void

AssertIncludes() public static method

public static AssertIncludes ( string expected, string all ) : void
expected string
all string
return void

CompareModificationsById() public static method

public static CompareModificationsById ( Braintree.Modification left, Braintree.Modification right ) : int
left Braintree.Modification
right Braintree.Modification
return int

Create3DSVerification() public static method

public static Create3DSVerification ( Braintree.BraintreeService service, string merchantAccountId, ThreeDSecureRequestForTests request ) : string
service Braintree.BraintreeService
merchantAccountId string
request ThreeDSecureRequestForTests
return string

Escrow() public static method

public static Escrow ( Braintree.BraintreeService service, string transactionId ) : void
service Braintree.BraintreeService
transactionId string
return void

GenerateDecodedClientToken() public static method

public static GenerateDecodedClientToken ( BraintreeGateway gateway, ClientTokenRequest request = null ) : string
gateway Braintree.BraintreeGateway
request Braintree.ClientTokenRequest
return string

GenerateFuturePaymentPayPalNonce() public static method

public static GenerateFuturePaymentPayPalNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
return string

GenerateInvalidUsBankAccountNonce() public static method

public static GenerateInvalidUsBankAccountNonce ( ) : string
return string

GenerateOneTimePayPalNonce() public static method

public static GenerateOneTimePayPalNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
return string

GenerateUnlockedNonce() public static method

public static GenerateUnlockedNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
return string

GenerateUnlockedNonce() public static method

public static GenerateUnlockedNonce ( BraintreeGateway gateway, string creditCardNumber, string customerId ) : string
gateway Braintree.BraintreeGateway
creditCardNumber string
customerId string
return string

GenerateValidUsBankAccountNonce() public static method

public static GenerateValidUsBankAccountNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
return string

GetNonceForNewCreditCard() public static method

public static GetNonceForNewCreditCard ( BraintreeGateway gateway, object>.System.Collections.Generic.Dictionary creditCardDetails, string customerId = null ) : string
gateway Braintree.BraintreeGateway
creditCardDetails object>.System.Collections.Generic.Dictionary
customerId string
return string

GetNonceForNewPaymentMethod() public static method

public static GetNonceForNewPaymentMethod ( BraintreeGateway gateway, object>.System.Collections.Generic.Dictionary @params, bool isCreditCard ) : string
gateway Braintree.BraintreeGateway
@params object>.System.Collections.Generic.Dictionary
isCreditCard bool
return string

GetNonceForPayPalAccount() public static method

public static GetNonceForPayPalAccount ( BraintreeGateway gateway, object>.System.Collections.Generic.Dictionary paypalAccountDetails ) : string
gateway Braintree.BraintreeGateway
paypalAccountDetails object>.System.Collections.Generic.Dictionary
return string

GetResponseContent() public static method

public static GetResponseContent ( HttpResponseMessage response ) : string
response System.Net.Http.HttpResponseMessage
return string

GetResponseContent() public static method

public static GetResponseContent ( HttpWebResponse response ) : string
response System.Net.HttpWebResponse
return string

IncludesSubscription() public static method

public static IncludesSubscription ( ResourceCollection collection, Braintree.Subscription subscription ) : bool
collection ResourceCollection
subscription Braintree.Subscription
return bool

QueryStringForTR() public static method

public static QueryStringForTR ( Request trParams, Request req, string postURL, Braintree.BraintreeService service ) : string
trParams Request
req Request
postURL string
service Braintree.BraintreeService
return string

extractIntParamFromJson() public static method

public static extractIntParamFromJson ( string keyName, string json ) : int
keyName string
json string
return int

extractParamFromJson() public static method

public static extractParamFromJson ( string keyName, HttpResponseMessage response ) : string
keyName string
response System.Net.Http.HttpResponseMessage
return string

extractParamFromJson() public static method

public static extractParamFromJson ( string keyName, HttpWebResponse response ) : string
keyName string
response System.Net.HttpWebResponse
return string

extractParamFromJson() public static method

public static extractParamFromJson ( string keyName, string json ) : string
keyName string
json string
return string