Exemplo n.º 1
0
 public bool IsLoggedIn(AccountData account) //made
 {
     return(IsLoggedIn() &&
            GetLoggedUserName() == account.Name);
 }
        public int CountProjectItems(AccountData account)
        {
            List <ProjectData> apiList = GetProjectListWithApi(account);

            return(apiList.Count());
        }
Exemplo n.º 3
0
 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))));
 }
Exemplo n.º 4
0
 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);
 }