C# 클래스 Braintree.TestUtil.TestHelper

파일 보기 프로젝트 열기: braintree/braintree_dotnet

공개 메소드들

메소드 설명
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

메소드 상세

AreDatesEqual() 공개 정적인 메소드

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

AssertIncludes() 공개 정적인 메소드

public static AssertIncludes ( string expected, string all ) : void
expected string
all string
리턴 void

CompareModificationsById() 공개 정적인 메소드

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

Create3DSVerification() 공개 정적인 메소드

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

Escrow() 공개 정적인 메소드

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

GenerateDecodedClientToken() 공개 정적인 메소드

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

GenerateFuturePaymentPayPalNonce() 공개 정적인 메소드

public static GenerateFuturePaymentPayPalNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
리턴 string

GenerateInvalidUsBankAccountNonce() 공개 정적인 메소드

public static GenerateInvalidUsBankAccountNonce ( ) : string
리턴 string

GenerateOneTimePayPalNonce() 공개 정적인 메소드

public static GenerateOneTimePayPalNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
리턴 string

GenerateUnlockedNonce() 공개 정적인 메소드

public static GenerateUnlockedNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
리턴 string

GenerateUnlockedNonce() 공개 정적인 메소드

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

GenerateValidUsBankAccountNonce() 공개 정적인 메소드

public static GenerateValidUsBankAccountNonce ( BraintreeGateway gateway ) : string
gateway Braintree.BraintreeGateway
리턴 string

GetNonceForNewCreditCard() 공개 정적인 메소드

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
리턴 string

GetNonceForNewPaymentMethod() 공개 정적인 메소드

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
리턴 string

GetNonceForPayPalAccount() 공개 정적인 메소드

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

GetResponseContent() 공개 정적인 메소드

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

GetResponseContent() 공개 정적인 메소드

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

IncludesSubscription() 공개 정적인 메소드

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

QueryStringForTR() 공개 정적인 메소드

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

extractIntParamFromJson() 공개 정적인 메소드

public static extractIntParamFromJson ( string keyName, string json ) : int
keyName string
json string
리턴 int

extractParamFromJson() 공개 정적인 메소드

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

extractParamFromJson() 공개 정적인 메소드

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

extractParamFromJson() 공개 정적인 메소드

public static extractParamFromJson ( string keyName, string json ) : string
keyName string
json string
리턴 string