public void AdicionarUsuarioAoProjetoComSucesso() { #region Inserindo novo usuário string username = "******" + GeneralHelpers.ReturnStringWithRandomCharacters(4); string realname = "Realname_" + GeneralHelpers.ReturnStringWithRandomCharacters(4); string enabled = "1"; string cookie = GeneralHelpers.ReturnStringWithRandomCharacters(12); string email = GeneralHelpers.ReturnStringWithRandomCharacters(10) + "@teste.com"; var usuarioCriadoDB = usersDBSteps.InserirUsuarioDB(username, realname, enabled, cookie, email); #endregion #region Inserindo um novo projeto string projectName = "Project_" + GeneralHelpers.ReturnStringWithRandomCharacters(5); var projetoCriadoDB = projectsDBSteps.InserirProjetoDB(projectName); #endregion #region Actions manageUserFlows.AcessarUsuarioCriadoAtivo(menu, username); manageUserEditPage.ClicarNomeProjeto(projetoCriadoDB.ProjectName); manageUserEditPage.ClicarAdicionarUsuario(); #endregion #region Validations var projetoAtribuidoUsuarioDB = projectsDBSteps.ConsultarProjetoAtribuidoAoUsuarioDB(projetoCriadoDB.ProjectId, usuarioCriadoDB.UserId); Assert.IsNotNull(projetoAtribuidoUsuarioDB, "O projeto não foi atribuído ao usuário."); #endregion usersDBSteps.DeletarUsuarioDB(usuarioCriadoDB.UserId); projectsDBSteps.DeletarProjetoDB(projetoCriadoDB.ProjectId); projectsDBSteps.DeletarProjetoAtribuidoAoUsuarioDB(projetoCriadoDB.ProjectId, usuarioCriadoDB.UserId); }