public void Validate() { if (FileSourceOption == null) { throw new ArgumentNullException("FileSourceOption cannot be null"); } else { FileSourceOption.Validate(); } if (ImportTargetOption == null) { throw new ArgumentNullException("ImportTargetOption cannot be null"); } else { ImportTargetOption.Validate(); } if (DatabaseConnectOption == null) { throw new ArgumentNullException("DatabaseConnectOption cannot be null"); } else { DatabaseConnectOption.Validate(); } }
public SingleFileImportOption() { ImportTargetOption = new ImportTargetOption(); DatabaseConnectOption = new DatabaseConnectOption(); }