Skip to content
Browse files

test_id

  • Loading branch information...
1 parent a8371ba commit eb18f52c5f5a4d7702a7aa301a4f52b0ef8d1a8c Tim Iles committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 GoCardlessSdk.Tests/Connect/ConnectTests.cs
View
6 GoCardlessSdk.Tests/Connect/ConnectTests.cs
@@ -18,14 +18,14 @@ public void NewSubscriptionUrl_GeneratesCorrectSignature()
MerchantId = "0190G74E3J",
};
GoCardless.Environment = GoCardless.Environments.Sandbox;
- GoCardless.AccountDetails.AppId = "Y9ON6TY6bFamTVNQKq98fPYzb6z4RoHsKy1Fyi1V7LtlT3fgiF5VTfppt9HO3Y8f";
- GoCardless.AccountDetails.AppSecret = "8ifu76Qi4HMJC1zSNf93WntQzJKpSmce0SwBNTA5HEqQY61aBTH7Nsx4w_HG1vUL";
+ GoCardless.AccountDetails.AppId = "test_id";
+ GoCardless.AccountDetails.AppSecret = "test_secret";
GoCardless.GenerateNonce = () => "Q9gMPVBZixfRiQ9VnRdDyrrMiskqT0ox8IT+HO3ReWMxavlco0Fw8rva+ZcI";
GoCardless.GetUtcNow = () => new DateTimeOffset(new DateTime(2012, 03, 21, 08, 55, 56));
var url = ConnectClient.NewSubscriptionUrl(subscription);
var expected =
- "https://sandbox.gocardless.com/connect/subscriptions/new?client_id=Y9ON6TY6bFamTVNQKq98fPYzb6z4RoHsKy1Fyi1V7LtlT3fgiF5VTfppt9HO3Y8f&nonce=Q9gMPVBZixfRiQ9VnRdDyrrMiskqT0ox8IT%2BHO3ReWMxavlco0Fw8rva%2BZcI&signature=4502dbbd24fe92136948408edf50f627b9cf3c333e7788f803b8a7d94d246799&subscription%5Bamount%5D=15.00&subscription%5Binterval_length%5D=1&subscription%5Binterval_unit%5D=month&subscription%5Bmerchant_id%5D=0190G74E3J&subscription%5Bname%5D=Premium%20Account&timestamp=2012-03-21T08%3A55%3A56Z";
+ "https://sandbox.gocardless.com/connect/subscriptions/new?client_id=test_id&nonce=Q9gMPVBZixfRiQ9VnRdDyrrMiskqT0ox8IT%2BHO3ReWMxavlco0Fw8rva%2BZcI&signature=87be2d342d4b3ad1bbd846c4dddd587e363d8c4c787a6851750b1c606bb72017&subscription%5Bamount%5D=15.00&subscription%5Binterval_length%5D=1&subscription%5Binterval_unit%5D=month&subscription%5Bmerchant_id%5D=0190G74E3J&subscription%5Bname%5D=Premium%20Account&timestamp=2012-03-21T08%3A55%3A56Z";
Assert.AreEqual(expected, url);
}

0 comments on commit eb18f52

Please sign in to comment.
Something went wrong with that request. Please try again.