public void AddStep(JobStep step) { if (step == null) { throw new Exception("Job step can not be null."); } else { _steps.Add(step); } }
public Job(Guid jobId, string name, DataSource sourceDataSource, DataSource targetDataSource, JobStep step, bool isEnabled = true) : this(jobId, name, isEnabled) { AddDataSource(sourceDataSource, SyncSide.Source); AddDataSource(targetDataSource, SyncSide.Target); AddStep(step); }