Beispiel #1
0
        public Responses GetResponses(SwapPANRequest swapPANRequest)
        {
            string response = "";
            Dictionary <string, string> responseMap = doRequest(GetURL(), "POST", Serializer <SwapPANRequest> .Serialize(swapPANRequest).InnerXml);

            responseMap.TryGetValue(MESSAGE, out response);
            return(Serializer <Responses> .Deserialize(response));
        }
 public void TestService()
 {
     request                                    = new SwapPANRequest();
     request.CurrentPan                         = 5112345678901255;
     request.NewPan.Id                          = 5112345678901235;
     request.NewPan.ExpiryDate                  = "0917";
     request.NewPan.CardSequenceNumber          = "001";
     request.NewPan.UpdateWalletServiceProvider = 0;
     request.Comments                           = "Issuer swaped the account on 01/03/2014";
     request.AuditInfo.UserId                   = "testUser";
     request.AuditInfo.UserName                 = "******";
     request.AuditInfo.Organization             = "Test Org";
     response                                   = service.GetResponses(request);
     Assert.IsNotNull(response.Response);
 }