public MsSqlDatabasePublisher(ICmdExecutor cmdExecutor, string sqlPackageDirPath) { Guard.NotNull(cmdExecutor, "cmdExecutor"); _cmdExecutor = cmdExecutor; _sqlPackageExePath = string.IsNullOrEmpty(sqlPackageDirPath) ? SqlPackageExeName : Path.Combine(sqlPackageDirPath, SqlPackageExeName); }
public void Execute(ICmdExecutor executor) { executor.ExecuteCmdPacket(this); }
protected IInstallCmd GetExecutorsAssociatedCommand(ICmdExecutor executor) { return(cmdExecutorPairs.Single(x => x.Item2 == executor).Item1); }