public Job(Period period, SharedJob sharedJob) { if (period == null) { throw new ArgumentNullException("period"); } period.CheckAssigningJob(); if (sharedJob == null) { throw new ArgumentNullException("sharedJob"); } id = new JobId(period.Id, sharedJob.Id); this.sharedJob = sharedJob; customFields = new List <JobCustomField>(); jobIndexList = new List <JobJobIndex>(); }
public Job(Period period, SharedJob sharedJob, IList <JobCustomField> customFieldList, IList <JobJobIndex> jobIndexList) : this(period, sharedJob) { assignCustomFields(customFieldList); assignJobIndices(jobIndexList); }