public void testChange() { LinkIDLTQRContent content = new LinkIDLTQRContent(); content.authenticationMessage = "foo"; content.finishedMessage = "bar"; content.paymentContext = new LinkIDPaymentContext(new LinkIDPaymentAmount(20000, LinkIDCurrency.EUR, null), "blaat", null, null); content.expiryDate = DateTime.Now.AddMonths(3); LinkIDLTQRSession session = client.ltqrChange(ltqrReference, content, null, false, false); Assert.NotNull(session); }
public void testPush() { LinkIDLTQRContent content = new LinkIDLTQRContent(); content.authenticationMessage = "foo"; content.finishedMessage = "bar"; content.paymentContext = new LinkIDPaymentContext(new LinkIDPaymentAmount(20000, LinkIDCurrency.EUR, null), "blaat", null, null); content.expiryDate = DateTime.Now.AddMonths(3); LinkIDLTQRSession session = client.ltqrPush(content, null, LinkIDLTQRLockType.NEVER); Assert.NotNull(session); }
public void testPushBulk() { LinkIDLTQRContent content = new LinkIDLTQRContent(); content.authenticationMessage = "foo"; content.finishedMessage = "bar"; content.paymentContext = new LinkIDPaymentContext(new LinkIDPaymentAmount(20000, LinkIDCurrency.EUR, null), "blaat", null, null); content.expiryDate = DateTime.Now.AddMonths(3); List <LinkIDLTQRPushContent> requests = new List <LinkIDLTQRPushContent>(); for (int i = 0; i < 5; i++) { requests.Add(new LinkIDLTQRPushContent(content, null, LinkIDLTQRLockType.NEVER)); } List <LinkIDLTQRPushResponse> results = client.ltqrBulkPush(requests); Assert.NotNull(results); Assert.AreEqual(requests.Count, results.Count); }