private static void SetPersonDetails(PersonDetailVersion Person)
 {
     Person.ListName = "LISTNAME";
     Person.Surname = "XCHANGING";
     Person.Forename = "ANKIT";
     Person.ContactNumber01 = "1234567890";
     Person.ContactNumber02 = "1234567890";
     Person.ContactNumber03 = "1234567890";
     Person.ContactNumber04 = "1234567890";
     Person.ContactNumber05 = "1234567890";
     Person.Email01 = "*****@*****.**";
     Person.Email02 = "*****@*****.**";
     Person.Email03 = "*****@*****.**";
     Person.Gender = 1;
     ////Person.VersionStartDate = DateTime.Now;
 }
Example #2
0
 /// <summary>
 /// Validates the person has a title and then uses this in the list name creation.
 /// Otherwise, list name is just a concatenation of forename and surname.
 /// </summary>
 /// <param name="results">The results.</param>
 /// <param name="personDetailVersion">The person detail version.</param>
 /// <param name="point">The point.</param>
 public void PersonValidation(ProcessResultsCollection results, PersonDetailVersion personDetailVersion, ProcessInvocationPoint point)
 {
     string title = string.Empty;
     if (!string.IsNullOrEmpty(personDetailVersion.TitleCode))
     {
         // Default the title as a string from the selected Title code on the Person detail
         title = FieldsHelper.GetCodeDescription(personDetailVersion.TitleCodeField, personDetailVersion.TitleCode);
     }
     
     if (!string.IsNullOrWhiteSpace(title))
     {
         // We have a title, so format the list name to include the title at the start.
         string listName = String.Format("{0} {1}", title, personDetailVersion.Forename).Trim();
         personDetailVersion.ListName = String.Format("{0} {1}", listName, personDetailVersion.Surname).Trim();
     }
     else 
     {
         // Otherwise, the list name is just forename surname.
         personDetailVersion.ListName = String.Format("{0} {1}", personDetailVersion.Forename, personDetailVersion.Surname).Trim();
     }
 }