public AdminController(LegacyMigrationWorker migrationWorker, IAdminCommandWorker adminCommandWorker, IAdminQueryWorker adminQueryWorker) { Contract.Requires <System.ArgumentNullException>(migrationWorker != null, "migrationWorker"); Contract.Requires <System.ArgumentNullException>(adminCommandWorker != null, "adminCommandWorker"); Contract.Requires <System.ArgumentNullException>(adminQueryWorker != null, "adminQueryWorker"); MigrationWorker = migrationWorker; AdminCommandWorker = adminCommandWorker; AdminQueryWorker = adminQueryWorker; }
public MigrationController(LegacyMigrationWorker worker) { Contract.Requires <System.ArgumentNullException>(worker != null, "worker"); Worker = worker; }