Esempio n. 1
0
        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);
        }