Example #1
0
        public AccountTests()
        {
            _email        = Guid.NewGuid().ToString() + "@test.com";
            _managedEmail = Guid.NewGuid().ToString() + "@test.com";
            _newEmail     = Guid.NewGuid().ToString() + "@test.com";

            _client         = new StripeClient(Constants.ApiKey);
            _account        = _client.CreateAccount(false, "US", _email);
            _managedAccount = _client.CreateAccount(true, "US", _managedEmail);
        }
Example #2
0
        public AccountTests()
        {
            _email = Guid.NewGuid().ToString() + "@test.com";
               _managedEmail = Guid.NewGuid().ToString() + "@test.com";
               _newEmail = Guid.NewGuid().ToString() + "@test.com";

            _client = new StripeClient(Constants.ApiKey);
            _account = _client.CreateAccount(false, "US", _email);
            _managedAccount = _client.CreateAccount(true, "US", _managedEmail);
        }
Example #3
0
        public void CreateAccount_Test()
        {
            dynamic response = _client.CreateAccount(false, "US", _newEmail);

            Assert.NotNull(response);
            Assert.False(response.IsError);
        }