/// <summary>
 /// Clones this AssessmentType object to a new AssessmentType object
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="deepCopy">if set to <c>true</c> a deep copy is made. If false, only the basic entity properties are copied.</param>
 /// <returns></returns>
 public static AssessmentType Clone(this AssessmentType source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as AssessmentType);
     }
     else
     {
         var target = new AssessmentType();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
 /// <summary>
 /// Copies the properties from another AssessmentType object to this AssessmentType object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this AssessmentType target, AssessmentType source)
 {
     target.Id                      = source.Id;
     target.AssessmentPath          = source.AssessmentPath;
     target.AssessmentResultsPath   = source.AssessmentResultsPath;
     target.BadgeColor              = source.BadgeColor;
     target.BadgeSummaryLava        = source.BadgeSummaryLava;
     target.Description             = source.Description;
     target.ForeignGuid             = source.ForeignGuid;
     target.ForeignKey              = source.ForeignKey;
     target.IconCssClass            = source.IconCssClass;
     target.IsActive                = source.IsActive;
     target.IsSystem                = source.IsSystem;
     target.MinimumDaysToRetake     = source.MinimumDaysToRetake;
     target.RequiresRequest         = source.RequiresRequest;
     target.Title                   = source.Title;
     target.ValidDuration           = source.ValidDuration;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid                    = source.Guid;
     target.ForeignId               = source.ForeignId;
 }