public void Setup() { this.buildPropertyParser = new BuildPropertyParser(); }
public PackageSolutionCommand(IUserInterface userInterface, ISolutionPackagingService solutionPackagingService, IBuildPropertyParser buildPropertyParser, IPublishingService publishingService) { if (userInterface == null) { throw new ArgumentNullException("userInterface"); } if (solutionPackagingService == null) { throw new ArgumentNullException("solutionPackagingService"); } if (buildPropertyParser == null) { throw new ArgumentNullException("buildPropertyParser"); } if (publishingService == null) { throw new ArgumentNullException("publishingService"); } this.userInterface = userInterface; this.solutionPackagingService = solutionPackagingService; this.buildPropertyParser = buildPropertyParser; this.publishingService = publishingService; this.Attributes = new CommandAttributes { CommandName = CommandName, AlternativeCommandNames = this.alternativeCommandNames, RequiredArguments = new[] { ArgumentNameSolutionPath, ArgumentNameBuildConfiguration, ArgumentNameMSBuildProperties, ArgumentNamePublishingConfiguration }, PositionalArguments = new[] { ArgumentNameSolutionPath, ArgumentNameBuildConfiguration, ArgumentNameMSBuildProperties, ArgumentNamePublishingConfiguration }, Description = Resources.PackageSolutionCommand.CommandDescriptionText, Usage = string.Format("{0} -{1}=<Path> -{2}=<Debug|Release> -{3}=<Property1=Value1;Property2=Value2>", CommandName, ArgumentNameSolutionPath, ArgumentNameBuildConfiguration, ArgumentNameMSBuildProperties), Examples = new Dictionary<string, string> { { string.Format("{0} -{1}=C:\\dev\\projects\\sample\\sample.sln -{2}=Release -{3}=IsAutoBuild=True", CommandName, ArgumentNameSolutionPath, ArgumentNameBuildConfiguration, ArgumentNameMSBuildProperties), Resources.PackageSolutionCommand.CommandExampleDescription1 } }, ArgumentDescriptions = new Dictionary<string, string> { { ArgumentNameSolutionPath, Resources.PackageSolutionCommand.ArgumentDescriptionSolutionPath }, { ArgumentNameBuildConfiguration, Resources.PackageSolutionCommand.ArgumentDescriptionBuildConfiguration }, { ArgumentNameMSBuildProperties, Resources.PackageSolutionCommand.ArgumentDescriptionMSBuildProperties }, { ArgumentNamePublishingConfiguration, Resources.PackageSolutionCommand.ArgumentDescriptionPublishingConfiguration } } }; this.Arguments = new Dictionary<string, string>(); }