public CreateDomainSolutionFile( ActionExecution actionExecution, IDotnetService dotnetService, IFileService fileService) : base(actionExecution, ActionName, ActionDescription, DeployManager.Phases.EmptyProject, Positions.Second, Positions.First) { DotnetService = dotnetService ?? throw new ArgumentNullException(nameof(dotnetService)); FileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); }
public InitializeProject( IFileService fileService, IGithubClientService githubClientService, IGitClientService gitClientService, IDotnetService dotnetService, IDDService dDService) : base(ActionName) { NameParameter = new ActionParameterDefinition( "name", ActionParameterDefinition.TypeValue.String, "Domain name. Must be unique. Is mandatory to use PascalCase for the name. Otherwise the name will be converterd", "n", string.Empty); NamespaceParameter = new ActionParameterDefinition( "namespace", ActionParameterDefinition.TypeValue.String, "Namespace. Is mandatory to use My.Domain.Project.Convention for your namespace. Otherwise the namespace will be converterd", "s", string.Empty); ProjectPathParameter = new ActionParameterDefinition( "projectpath", ActionParameterDefinition.TypeValue.String, "Path for locate the project files", "p", string.Empty); ActionParametersDefinition.Add(NameParameter); ActionParametersDefinition.Add(NamespaceParameter); ActionParametersDefinition.Add(ProjectPathParameter); FileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); GithubClientService = githubClientService ?? throw new ArgumentNullException(nameof(githubClientService)); GitClientService = gitClientService ?? throw new ArgumentNullException(nameof(gitClientService)); DotnetService = dotnetService ?? throw new ArgumentNullException(nameof(dotnetService)); DDService = dDService ?? throw new ArgumentNullException(nameof(dDService)); }