public void GetPostDataTest() { var target = new EbsPaymentProvider(_paymentProviderDetails); string transactionId = Guid.NewGuid().ToString(); string productInfo = "Air"; string actual; actual = target.GetPostData(transactionId, toChargeAmount, productInfo, account, account.BillingAddress ?? new Address { AddressLine1 = "Test", AddressLine2 = "LIne 2", City = "Pune", Country = "IN", State = "MH", ZipCode = "12345" }, ""); Assert.IsFalse(string.IsNullOrEmpty(actual)); }
public void ProviderDetailsTest() { var target = new EbsPaymentProvider(_paymentProviderDetails); PaymentProviderDetails actual; actual = target.ProviderDetails; Assert.AreEqual(_paymentProviderDetails, actual); }
public void EbsPaymentProviderConstructorTest() { var target = new EbsPaymentProvider(_paymentProviderDetails); Assert.IsNotNull(target); }
public void IsValidResponseTest() { var target = new EbsPaymentProvider(_paymentProviderDetails); bool expected = true; bool actual; string errorMessage; Charge charge; actual = target.IsValidResponse(toChargeAmount, new NameValueCollection { { "DR", "IXc9laP5EPzkG8rJUEkT9GPYZKb+340d1KINeq1DJAbrqc5GeRs3RVwRJ7YShbNZUyaxTmSW46lexsfKVHpZGaEckYB8lJxHvjoGVm9WVrC0bs6Rg3u125hgs12+1Ql5j0XYz9JzJqt32SFu+2e9n2eDeWfaVS3nHIy7Mlka6gGSMLuNNWLaD/0eUIYBJRuUCyukobyk1/qAxYiqkquPr2q0acjgI+dr04fQrA/qgoWaJev/QzztWP9rANvYQaW60o8kYZNjVZUgR5n+5u5ru29yh74GghXuCQQ6CCTq5sANfwZfVwp3rVV/U8V/p2/jrFGxrFYiEi1yxlb3B1RBXSQUN5sSfdsTmaMC1vM6oUHth1h4ef0NCCh5v2ETa1O1bMIz0npXSIC+PLN8wx4dKrDiKBGsiFtEbEuYsAxzlfVrP/wz11xQA+E+8/PvLRuy1fMGmKUfIg+0D0ATkzQwqrroCFDpu5P5nKlvVXbKXCs0k+WfGR1klQpJ4RR4DWmBwL3ga+u/qRtFC4y2yCUnlolC0WGNWSIps1L+6NeIxFwkPJTPv7GgsFXv3ur6f+XWrtiuWY5hlRasxl0gFzuDwmZF2QPsYm1oO6g6ZqrvFARrx5t1+K3LJN27de/2ux7QgwaN92ReqyzkbeGs0PUyST3KGSrSfi+yaIsQDS/AO6ytfml/Qt8sQ4isg2aivOGiNKB2Sr0/Zf/xyvi5TpJvo8y6InHm1mrP/EiK35nnSkStPE8gkshlupsUnRg4JJl7bM/geYKSQE4zjaKoJgu9WDScg1I0uXQIxMN83lwex4xuNd7FjOYjwbCTMirLfOf68LtJxiI=" } }, account, "", out errorMessage, out charge); Assert.IsTrue(string.IsNullOrEmpty(errorMessage)); Assert.AreEqual(expected, actual); }