コード例 #1
0
 public searchResponse GetSearchResponse(SearchRequest searchRequest)
 {
     string response = "";
     Dictionary<string, string> responseMap = doRequest(GetURL(), "POST", Serializer<SearchRequest>.Serialize(searchRequest).InnerXml);
     responseMap.TryGetValue(MESSAGE, out response);
     return Serializer<searchResponse>.Deserialize(response);
 }
コード例 #2
0
 public void TestService()
 {
     searchRequest = new SearchRequest();
     searchRequest.Pan = 5112345678901234;
     searchRequest.AuditInfo.UserId = "testUser";
     searchRequest.AuditInfo.UserName = "******";
     searchRequest.AuditInfo.Organization = "Test Org";
     response = service.GetSearchResponse(searchRequest);
     Assert.IsNotNull(response.PANDetails);
     Assert.IsNotNull(response.Response);
 }
コード例 #3
0
 public void TestService()
 {
     searchRequest = new SearchRequest();
     searchRequest.Pan = 5112345678901234;
     searchRequest.AuditInfo.UserId = "testUser";
     searchRequest.AuditInfo.UserName = "******";
     searchRequest.AuditInfo.Organization = "Test Org";
     response = mappingSearchService.GetSearchResponse(searchRequest);
     string tokenUniqueId = response.Devices.ElementAt(0).TokenUniqueId;
     deliveryChannels = deliveryChannelsService.GetDeliveryChannels(tokenUniqueId);
     Assert.IsNotNull(deliveryChannels.DeliveryChannel);
 }
 public void TestService()
 {
     searchRequest = new SearchRequest();
     searchRequest.Pan = 5112345678901234;
     searchRequest.AuditInfo.UserId = "testUser";
     searchRequest.AuditInfo.UserName = "******";
     searchRequest.AuditInfo.Organization = "Test Org";
     response = mappingSearchService.GetSearchResponse(searchRequest);
     String tokenUniqueId = response.Devices.ElementAt(0).TokenUniqueId;
     deliveryChannels = deliveryChannelsService.GetDeliveryChannels(tokenUniqueId);
     long deliveryChannelId = deliveryChannels.DeliveryChannel.ElementAt(0).Id;
     resendRequest = new ResendRequest();
     resendRequest.DeliveryChannelId = deliveryChannelId;
     resendRequest.AuditInfo.UserId = "testUser";
     resendRequest.AuditInfo.UserName = "******";
     resendRequest.AuditInfo.Organization = "Test Org";
     resendCodeResults = resendActivationCodeService.GetResendCodeResults(resendRequest, tokenUniqueId);
     Assert.IsNotNull(resendCodeResults.ResponseCode);
 }