private void MapTo(EnterspeedJobSchema source, EnterspeedJob target, MapperContext context)
 {
     target.Id        = source.Id;
     target.ContentId = source.ContentId;
     target.CreatedAt = source.CreatedAt;
     target.UpdatedAt = source.UpdatedAt;
     target.JobType   = (EnterspeedJobType)source.JobType;
     target.State     = (EnterspeedJobState)source.JobState;
     target.Exception = source.Exception;
     target.Culture   = source.Culture;
 }
 private void MapFrom(EnterspeedJob source, EnterspeedJobSchema target, MapperContext context)
 {
     target.Id        = source.Id;
     target.ContentId = source.ContentId;
     target.CreatedAt = source.CreatedAt;
     target.UpdatedAt = source.UpdatedAt;
     target.JobType   = source.JobType.GetHashCode();
     target.JobState  = source.State.GetHashCode();
     target.Exception = source.Exception;
     target.Culture   = source.Culture;
 }
        private EnterspeedJob MapFromSchema(EnterspeedJobSchema job)
        {
            if (job == null)
            {
                return(null);
            }

            return(new EnterspeedJob
            {
                Id = job.Id,
                ContentId = job.ContentId,
                CreatedAt = job.CreatedAt,
                Culture = job.Culture,
                Exception = job.Exception,
                JobType = (EnterspeedJobType)job.JobType,
                State = (EnterspeedJobState)job.JobState,
                UpdatedAt = job.UpdatedAt
            });
        }