/// <summary> /// Initializes a new instance of the <see cref="CakeApplication"/> class. /// </summary> /// <param name="log">The log.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="argumentParser">The argument parser.</param> /// <param name="console">The console.</param> public CakeApplication( IVerbosityAwareLog log, ICommandFactory commandFactory, IArgumentParser argumentParser, IConsole console) { if (log == null) { throw new ArgumentNullException("log"); } if (commandFactory == null) { throw new ArgumentNullException("commandFactory"); } if (argumentParser == null) { throw new ArgumentNullException("argumentParser"); } if (console == null) { throw new ArgumentNullException("console"); } _log = log; _commandFactory = commandFactory; _argumentParser = argumentParser; _console = console; }
/// <summary> /// Initializes a new instance of the <see cref="CakeApplication"/> class. /// </summary> /// <param name="log">The log.</param> /// <param name="commandFactory">The command factory.</param> public CakeApplication( IVerbosityAwareLog log, ICommandFactory commandFactory) { if (log == null) { throw new ArgumentNullException("log"); } if (commandFactory == null) { throw new ArgumentNullException("commandFactory"); } _log = log; _commandFactory = commandFactory; }