public UpdateMapping GetUpdateMapping(UpdateMappingRequest request, UpdateMappingRequestOptions options)
 {
     string response = "";
     Dictionary<string, string> responseMap = doRequest(GetURL(options.MappingId), "PUT", Serializer<UpdateMappingRequest>.Serialize(request).InnerXml);
     responseMap.TryGetValue(MESSAGE, out response);
     return Serializer<UpdateMapping>.Deserialize(response);
 }
 public void TestUpdateMappingRequestSuccess()
 {
     UpdateMappingRequest updateRequest = new UpdateMappingRequest();
     //Obtain Mapping ID from Inquire Mapping test results.
     updateOptions.MappingId = inquireMapping.Mappings[0].MappingId;
     updateRequest.AccountUsage = "SENDING";
     updateRequest.AccountNumber = 5184680430000006;
     updateRequest.DefaultIndicator = "T";
     updateRequest.ExpiryDate = 201407;
     updateRequest.Alias = "The Debit Card";
     updateRequest.Address.Line1 = "123 Main Street";
     updateRequest.Address.City = "OFallon";
     updateRequest.Address.CountrySubdivision = "MO";
     updateRequest.Address.Country = "USA";
     updateRequest.Address.PostalCode = 63368;
     updateRequest.CardholderFullName.CardholderFirstName = "John";
     updateRequest.CardholderFullName.CardholderMiddleName = "X";
     updateRequest.CardholderFullName.CardholderLastName = "Public";
     updateRequest.DateOfBirth = 19460102;
     UpdateMapping updateMapping = service.GetUpdateMapping(updateRequest, updateOptions);
     Assert.IsTrue(updateMapping != null);
     Assert.IsTrue(updateMapping.RequestId != null && updateMapping.RequestId > 0);
     Assert.IsTrue(updateMapping.Mapping.MappingId != null && updateMapping.Mapping.MappingId > 0);
 }