public bool IsLoggedIn(AccountData account) //made { return(IsLoggedIn() && GetLoggedUserName() == account.Name); }
public int CountProjectItems(AccountData account) { List <ProjectData> apiList = GetProjectListWithApi(account); return(apiList.Count()); }
public List <ProjectData> GetProjectsList(AccountData account) { Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient(); return(new List <ProjectData>(Array.ConvertAll(client.mc_projects_get_user_accessible(account.Username, account.Password), item => new ProjectData(item)))); }
public bool LoggedIn(AccountData account) { return(LoggedIn() && GetUserName() == account.Name); }
private bool LoggedIn(AccountData account) { return(LoggedIn() && driver.FindElement(By.CssSelector("span.user-info")).Text == account.Username); }