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 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; }