public XmlImportJob() { this.ImportMappings = new List <XmlMapping>(); this.MappingSources = new XmlMappingSourceList(); this.ImportType = Enumerations.ImportJobType.Xml; this.DoWorkEvent += this.initializeImport; }
public XmlImportJob(XmlMappingSourceList sources) : this() { if (!sources.Any()) { throw new ArgumentException("ImportSources cannot be empty.", nameof(sources)); } this.MappingSources = sources; }