예제 #1
0
 public void GetPostDataTest()
 {
     var accountResponse = new LoginService().GetAccount(_sessionId, TestUserAccount.AuthenticationId);
     var response = PaymentService.GetPostData(_transactionId,toChargeAmount.ToString(),"Air",_sessionId,
         accountResponse.UserAccount,  _address, "");
     Assert.IsFalse(string.IsNullOrEmpty(response), "GetPostData returned null");
 }
예제 #2
0
        public void ValidatePaymentResponse()
        {
            var accountResponse = new LoginService().GetAccount(_sessionId, TestUserAccount.AuthenticationId);
            var response = PaymentService.ValidatePaymentResponse(toChargeAmount.ToString(), "EBS", _sessionId,
                                                                  new List<KeyValue>
                                                                      {
                                                                          new KeyValue
                                                                              {
                                                                                  Key = "DR",
                                                                                  Value =
                                                                                      "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="
                                                                              }
                                                                      }, accountResponse.UserAccount, TestUserAccount.AuthenticationId, "");

            Assert.IsNotNull(response, "ValidatePaymentResponse returned null");
            Assert.IsTrue(response.IsSuccess, "ValidatePaymentResponse returned success false");
            Assert.IsTrue(string.IsNullOrEmpty(response.ErrorMessage),
                          "Error message returned: " + response.ErrorMessage);
        }
예제 #3
0
 public void Initialize()
 {
     LoginService = new LoginService();
     TestUser = TestContextManager.GetTestUser();
 }