public void EnterProjectDetails(NewProjectController newProject, string projectName, string solutionName, string solutionLocation) { Assert.IsTrue(newProject.SetProjectName(projectName)); if (!string.IsNullOrEmpty(solutionName)) { Assert.IsTrue(newProject.SetSolutionName(solutionName)); } if (!string.IsNullOrEmpty(solutionLocation)) { Assert.IsTrue(newProject.SetSolutionLocation(solutionLocation)); } }
protected virtual void OnEnterProjectDetails(NewProjectController newProject, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { if (!newProject.SetProjectName(projectDetails.ProjectName)) { throw new CreateProjectException(string.Format("Failed at entering ProjectName as '{0}'", projectDetails.ProjectName)); } if (!string.IsNullOrEmpty(projectDetails.SolutionName)) { if (!newProject.SetSolutionName(projectDetails.SolutionName, projectDetails.AddProjectToExistingSolution)) { throw new CreateProjectException(string.Format("Failed at entering SolutionName as '{0}'", projectDetails.SolutionName)); } } if (!string.IsNullOrEmpty(projectDetails.SolutionLocation)) { if (!newProject.SetSolutionLocation(projectDetails.SolutionLocation)) { throw new CreateProjectException(string.Format("Failed at entering SolutionLocation as '{0}'", projectDetails.SolutionLocation)); } } if (!newProject.CreateProjectInSolutionDirectory(projectDetails.ProjectInSolution)) { throw new CreateProjectException(string.Format("Failed at entering ProjectInSolution as '{0}'", projectDetails.ProjectInSolution)); } if (gitOptions != null && !projectDetails.AddProjectToExistingSolution) { if (!newProject.UseGit(gitOptions)) { throw new CreateProjectException(string.Format("Failed at setting Git as - '{0}'", gitOptions)); } } TakeScreenShot("AfterProjectDetailsFilled"); }
protected virtual void OnEnterProjectDetails(NewProjectController newProject, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { Assert.IsTrue(newProject.SetProjectName(projectDetails.ProjectName)); if (!string.IsNullOrEmpty(projectDetails.SolutionName)) { Assert.IsTrue(newProject.SetSolutionName(projectDetails.SolutionName)); } if (!string.IsNullOrEmpty(projectDetails.SolutionLocation)) { Assert.IsTrue(newProject.SetSolutionLocation(projectDetails.SolutionLocation)); } Assert.IsTrue(newProject.CreateProjectInSolutionDirectory(projectDetails.ProjectInSolution)); if (gitOptions != null) { Assert.IsTrue(newProject.UseGit(gitOptions)); } TakeScreenShot("AfterProjectDetailsFilled"); }
protected virtual void OnEnterProjectDetails (NewProjectController newProject, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { if (!newProject.SetProjectName (projectDetails.ProjectName, projectDetails.AddProjectToExistingSolution)) { throw new CreateProjectException (string.Format ("Failed at entering ProjectName as '{0}'", projectDetails.ProjectName)); } if (!string.IsNullOrEmpty (projectDetails.SolutionName)) { if (!newProject.SetSolutionName (projectDetails.SolutionName, projectDetails.AddProjectToExistingSolution)) { throw new CreateProjectException (string.Format ("Failed at entering SolutionName as '{0}'", projectDetails.SolutionName)); } } if (!string.IsNullOrEmpty (projectDetails.SolutionLocation)) { if (!newProject.SetSolutionLocation (projectDetails.SolutionLocation)) { throw new CreateProjectException (string.Format ("Failed at entering SolutionLocation as '{0}'", projectDetails.SolutionLocation)); } } if (!newProject.CreateProjectInSolutionDirectory (projectDetails.ProjectInSolution)) { throw new CreateProjectException (string.Format ("Failed at entering ProjectInSolution as '{0}'", projectDetails.ProjectInSolution)); } if (gitOptions != null && !projectDetails.AddProjectToExistingSolution) { if (!newProject.UseGit (gitOptions)) { throw new CreateProjectException (string.Format ("Failed at setting Git as - '{0}'", gitOptions)); } } TakeScreenShot ("AfterProjectDetailsFilled"); }
protected virtual void OnEnterProjectDetails (NewProjectController newProject, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { Assert.IsTrue (newProject.SetProjectName (projectDetails.ProjectName)); if (!string.IsNullOrEmpty (projectDetails.SolutionName)) { Assert.IsTrue (newProject.SetSolutionName (projectDetails.SolutionName)); } if (!string.IsNullOrEmpty (projectDetails.SolutionLocation)) { Assert.IsTrue (newProject.SetSolutionLocation (projectDetails.SolutionLocation)); } Assert.IsTrue (newProject.CreateProjectInSolutionDirectory (projectDetails.ProjectInSolution)); if (gitOptions != null) Assert.IsTrue (newProject.UseGit (gitOptions)); TakeScreenShot ("AfterProjectDetailsFilled"); }