public void GivenExistaUmProjetoCriadoComOsDados(string nomeProjeto, string estado, string visibilidade, string descricao) { var projectTableDAO = new ProjectTableDAO(); projectTableDAO.InsertNewProject(new ProjectModel() { name = nomeProjeto, status = estado, viewState = visibilidade, description = descricao }); }
public static ResultModel IsNewProjectInDataBase(ProjectModel newProject) { var projectTableDao = new ProjectTableDAO(); var projectInDb = projectTableDao.ReturnProject(newProject.name); var isNewProjectInDataBase = newProject.IsEqual(projectInDb); return(new ResultModel() { result = isNewProjectInDataBase, message = isNewProjectInDataBase ? AssertionsMessages.ProjectCreatedSuccess : AssertionsMessages.ProjectCreatedFail }); }
public void GivenEuEntreNaTelaDeGerenciarOProjeto(string nomeProjeto) { var projectTableDAO = new ProjectTableDAO(); Navigation.EnterProjectPage(projectTableDAO.ReturnProject(nomeProjeto).id); }
public void ClearProjectsTable() { var projectTableDAO = new ProjectTableDAO(); projectTableDAO.ClearProjectTable(); }