public void AddNewUser(string userName, string userEmail, string userPassword, string userPhone) { MenuBar.GetMenuBar().ClickOnUsersListLabel(); UsersListPage.GetUsersListPage().ClickOnAddNewUserButton(); AddNewUserPage.GetAddNewUserPage().EnterUserName(userName); AddNewUserPage.GetAddNewUserPage().EnterUserEmail(userEmail); AddNewUserPage.GetAddNewUserPage().EnterUserPassword(userPassword); AddNewUserPage.GetAddNewUserPage().ConformUserPassword(userPassword); AddNewUserPage.GetAddNewUserPage().ClickOnSaveNewUserButton(); var logout = new Logout(); logout.LogoutFromPage(); }
private void NewUserButton_Click(object sender, RoutedEventArgs e) { AddNewUserPage newUser = new AddNewUserPage(); this.NavigationService.Navigate(newUser); }