Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes UtilsTests.cs

  • Loading branch information...
commit 15bc04d2aa24e8c420600e3c1046d190ad9821f6 1 parent 1986e23
Tim Rogers timrogers authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 GoCardlessSdk.Tests/Helpers/UtilsTests.cs
16 GoCardlessSdk.Tests/Helpers/UtilsTests.cs
View
@@ -98,7 +98,7 @@ public void ToQueryStringTests()
}
};
Assert.AreEqual(
- "amount=2.00&interval_length=1&interval_unit=month&merchant_id=merchant123&start_at=2011-01-01T12%3A00%3A00Z&user%5Bfirst_name%5D=John&user%5Bname%5D=John%20Smith",
+ "amount=2.00&interval_length=1&interval_unit=month&merchant_id=merchant123&setup_fee=0.00&start_at=2011-01-01T12%3A00%3A00Z&user%5Bfirst_name%5D=John&user%5Bname%5D=John%20Smith",
subscription.ToQueryString());
}
@@ -110,13 +110,13 @@ class SignatureTestModel
[Test]
public void SignatureTest()
{
- /* from API docs: (https://gocardless.com/docs/signature_guide#constructing-the-parameter-array)
- * irb(main):002:0> to_query(data)
- * => "example%5B%5D=1&example%5B%5D=a&foo=bar"
- * irb(main):003:0> secret = '5PUZmVMmukNwiHc7V/TJvFHRQZWZumIpCnfZKrVYGpuAdkCcEfv3LIDSrsJ+xOVH'
- * => "5PUZmVMmukNwiHc7V/TJvFHRQZWZumIpCnfZKrVYGpuAdkCcEfv3LIDSrsJ+xOVH"
- * irb(main):004:0> signature(data, secret)
- * => "5a9447aef2ebd0e12d80d80c836858c6f9c13219f615ef5d135da408bcad453d"
+ /* from API docs: (https://gocardless.com/docs/signature_guide#constructing-the-parameter-array)
+ * irb(main):002:0> to_query(data)
+ * => "example%5B%5D=1&example%5B%5D=a&foo=bar"
+ * irb(main):003:0> secret = '5PUZmVMmukNwiHc7V/TJvFHRQZWZumIpCnfZKrVYGpuAdkCcEfv3LIDSrsJ+xOVH'
+ * => "5PUZmVMmukNwiHc7V/TJvFHRQZWZumIpCnfZKrVYGpuAdkCcEfv3LIDSrsJ+xOVH"
+ * irb(main):004:0> signature(data, secret)
+ * => "5a9447aef2ebd0e12d80d80c836858c6f9c13219f615ef5d135da408bcad453d"
*/
var model = new SignatureTestModel
Please sign in to comment.
Something went wrong with that request. Please try again.