public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
        {
            if (objectFactory == null)
              {
            throw new ArgumentNullException("objectFactory");
              }

              return
            new DeployDbProjectDeploymentTask(
              objectFactory.CreateProjectInfoRepository(),
              objectFactory.CreateEnvironmentInfoRepository(),
              objectFactory.CreateArtifactsRepository(),
              objectFactory.CreateDbScriptRunnerFactory(),
              objectFactory.CreateDbVersionProvider(),
              objectFactory.CreateFileAdapter(),
              objectFactory.CreateZipFileAdapter(),
              objectFactory.CreateScriptsToRunWebSelector(),
              objectFactory.CreateMsSqlDatabasePublisher(),
              objectFactory.CreateDbManagerFactory(),
              objectFactory.CreateUserNameNormalizer(),
              objectFactory.CreateDirectoryAdapter());
        }
        public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
        {
            if (objectFactory == null)
            {
                throw new ArgumentNullException("objectFactory");
            }

            return
                (new DeployDbProjectDeploymentTask(
                     objectFactory.CreateProjectInfoRepository(),
                     objectFactory.CreateEnvironmentInfoRepository(),
                     objectFactory.CreateArtifactsRepository(),
                     objectFactory.CreateDbScriptRunnerFactory(),
                     objectFactory.CreateDbVersionProvider(),
                     objectFactory.CreateFileAdapter(),
                     objectFactory.CreateZipFileAdapter(),
                     objectFactory.CreateScriptsToRunWebSelector(),
                     objectFactory.CreateMsSqlDatabasePublisher(),
                     objectFactory.CreateDbManagerFactory(),
                     objectFactory.CreateUserNameNormalizer(),
                     objectFactory.CreateDirectoryAdapter()));
        }