public void CreateNewProject_ProjectPageWillExistNewProjectAsOpen_TrueReturned() { var generatedRepositoryName = TestExtensions.GetRandomString(length: 6); var projectForm = new ProjectFormInfo() { Name = generatedRepositoryName, Description = "test creating", Visibility = Visibility.Public, }; ProjectsSteps.CreateNewProject(projectForm); var actual = ProjectsSteps.ContainsOpenProject(generatedRepositoryName); Assert.True(actual); }
public void CloseCreatedProject_NewProjectWillExistInClosedProjectsAndUnexistsInOpenProjects_TrueReturned() { var generatedProjectName = TestExtensions.GetRandomString(length: 6); var projectForm = new ProjectFormInfo() { Name = generatedProjectName, Description = "this project needs to be moved to closed projects", Visibility = Visibility.Public, }; ProjectsSteps.CreateNewProject(projectForm); ProjectsSteps.CloseProject(generatedProjectName); var actual = ProjectsSteps.ContainsClosedProject(generatedProjectName) && !ProjectsSteps.ContainsOpenProject(generatedProjectName); Assert.True(actual); }