public void Can_Generate_A_ClientTokenRequest_And_GetToken() { //// Arrange var factory = new BraintreeApiRequestFactory(this.BraintreeProviderSettings); var request = factory.CreateClientTokenRequest(Guid.Empty); //// Act var token = this.Gateway.ClientToken.generate(request); //// Assert Assert.IsNotNullOrEmpty(token); Console.Write(token); }
public void Can_Generate_A_ClientTokenRequest_For_A_Customer_And_GetToken() { //// Arrange var factory = new BraintreeApiRequestFactory(BraintreeProviderSettings); BraintreeApiService.Customer.Create(TestCustomer); var request = factory.CreateClientTokenRequest(TestCustomer.Key); //// Act var token = Gateway.ClientToken.generate(request); //// Assert Assert.IsNotNullOrEmpty(token); Console.Write(token); }
public void Can_Generate_A_ClientTokenRequest_For_A_Customer_And_GetToken() { //// Arrange var factory = new BraintreeApiRequestFactory(this.BraintreeProviderSettings); this.BraintreeApiService.Customer.Create(this.TestCustomer); var request = factory.CreateClientTokenRequest(this.TestCustomer.Key); //// Act var token = this.Gateway.ClientToken.generate(request); //// Assert Assert.IsNotNullOrEmpty(token); Console.Write(token); }