/// <summary> /// Initializes a new instance of the <see cref="ScriptProcessor"/> class. /// </summary> /// <param name="fileSystem">The file system.</param> /// <param name="environment">The environment.</param> /// <param name="log">The log.</param> /// <param name="installer">The NuGet package installer.</param> /// <param name="assembliesLocator">the nuget assemblies locator.</param> public ScriptProcessor( IFileSystem fileSystem, ICakeEnvironment environment, ICakeLog log, INuGetPackageInstaller installer, INuGetPackageAssembliesLocator assembliesLocator) { if (fileSystem == null) { throw new ArgumentNullException("fileSystem"); } if (environment == null) { throw new ArgumentNullException("environment"); } if (log == null) { throw new ArgumentNullException("log"); } if (installer == null) { throw new ArgumentNullException("installer"); } if (assembliesLocator == null) { throw new ArgumentNullException("assembliesLocator"); } _fileSystem = fileSystem; _environment = environment; _log = log; _installer = installer; _assembliesLocator = assembliesLocator; }
public NuGetLoadDirectiveProvider( ICakeEnvironment environment, INuGetPackageInstaller installer, ICakeConfiguration configuration, ICakeLog log) { _environment = environment ?? throw new ArgumentNullException(nameof(environment)); _installer = installer ?? throw new ArgumentNullException(nameof(installer)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _log = log ?? throw new ArgumentNullException(nameof(log)); }
public NuGetLoadDirectiveProvider( ICakeEnvironment environment, INuGetPackageInstaller installer, ICakeConfiguration configuration, ICakeLog log) { _environment = environment; _installer = installer; _configuration = configuration; _log = log; }