C# Class Braintree.TestUtil.TestHelper

Afficher le fichier Open project: braintree/braintree_dotnet

Méthodes publiques

Méthode 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 méthode

public static AreDatesEqual ( System.DateTime expected, System.DateTime actual ) : void
expected System.DateTime
actual System.DateTime
Résultat void

AssertIncludes() public static méthode

public static AssertIncludes ( string expected, string all ) : void
expected string
all string
Résultat void

CompareModificationsById() public static méthode

public static CompareModificationsById ( Braintree.Modification left, Braintree.Modification right ) : int
left Braintree.Modification
right Braintree.Modification
Résultat int

Create3DSVerification() public static méthode

public static Create3DSVerification ( Braintree.BraintreeService service, string merchantAccountId, ThreeDSecureRequestForTests request ) : string
service Braintree.BraintreeService
merchantAccountId string
request ThreeDSecureRequestForTests
Résultat string

Escrow() public static méthode

public static Escrow ( Braintree.BraintreeService service, string transactionId ) : void
service Braintree.BraintreeService
transactionId string
Résultat void

GenerateDecodedClientToken() public static méthode

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

GenerateFuturePaymentPayPalNonce() public static méthode

public static GenerateFuturePaymentPayPalNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
Résultat string

GenerateInvalidUsBankAccountNonce() public static méthode

public static GenerateInvalidUsBankAccountNonce ( ) : string
Résultat string

GenerateOneTimePayPalNonce() public static méthode

public static GenerateOneTimePayPalNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
Résultat string

GenerateUnlockedNonce() public static méthode

public static GenerateUnlockedNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
Résultat string

GenerateUnlockedNonce() public static méthode

public static GenerateUnlockedNonce ( BraintreeGateway gateway, string creditCardNumber, string customerId ) : string
gateway Braintree.BraintreeGateway
creditCardNumber string
customerId string
Résultat string

GenerateValidUsBankAccountNonce() public static méthode

public static GenerateValidUsBankAccountNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
Résultat string

GetNonceForNewCreditCard() public static méthode

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
Résultat string

GetNonceForNewPaymentMethod() public static méthode

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
Résultat string

GetNonceForPayPalAccount() public static méthode

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

GetResponseContent() public static méthode

public static GetResponseContent ( HttpResponseMessage response ) : string
response System.Net.Http.HttpResponseMessage
Résultat string

GetResponseContent() public static méthode

public static GetResponseContent ( HttpWebResponse response ) : string
response System.Net.HttpWebResponse
Résultat string

IncludesSubscription() public static méthode

public static IncludesSubscription ( ResourceCollection collection, Braintree.Subscription subscription ) : bool
collection ResourceCollection
subscription Braintree.Subscription
Résultat bool

QueryStringForTR() public static méthode

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

extractIntParamFromJson() public static méthode

public static extractIntParamFromJson ( string keyName, string json ) : int
keyName string
json string
Résultat int

extractParamFromJson() public static méthode

public static extractParamFromJson ( string keyName, HttpResponseMessage response ) : string
keyName string
response System.Net.Http.HttpResponseMessage
Résultat string

extractParamFromJson() public static méthode

public static extractParamFromJson ( string keyName, HttpWebResponse response ) : string
keyName string
response System.Net.HttpWebResponse
Résultat string

extractParamFromJson() public static méthode

public static extractParamFromJson ( string keyName, string json ) : string
keyName string
json string
Résultat string