Exemple #1
0
 /// <summary>
 /// Fills this dummy object with data from a Name entity.
 /// </summary>
 /// <param name="entity">Name entity from where to getting the data from.</param>
 public void FillFromNameEntity(NameBusinessEntity entity)
 {
     if (entity == null)
     {
         return;
     }
     Title      = entity.Title;
     FirstName  = entity.FirstName;
     MiddleName = entity.MiddleName;
     LastName   = entity.LastName;
     Suffix     = entity.Suffix;
 }
Exemple #2
0
 /// <summary>
 /// Fills a given Name entity with the content of this dummy object.
 /// </summary>
 /// <param name="entity">Entity to be filled.</param>
 public void FillNameEntity(NameBusinessEntity entity)
 {
     if (entity == null)
     {
         return;
     }
     entity.Title      = Title;
     entity.FirstName  = FirstName;
     entity.MiddleName = MiddleName;
     entity.LastName   = LastName;
     entity.Suffix     = Suffix;
 }