Exemplo n.º 1
0
        public static PenetrationTesterAccount getAccount(string name)
        {
            PenetrationTesterAccount account = new PenetrationTesterAccount();

            account = Testers.FirstOrDefault(x => x.Name == name);
            return(account);
        }
Exemplo n.º 2
0
        internal static IList <PenetrationTesterAccount> loadTesters()
        {
            IList <PenetrationTesterAccount> testers = new List <PenetrationTesterAccount>();
            XElement data = configuration.Element("penetrationTesters");

            if (null != data)
            {
                foreach (XElement x in data.Elements("user").ToList())
                {
                    string name  = x.Element("name").Value;
                    string email = x.Element("email").Value;
                    PenetrationTesterAccount a = new PenetrationTesterAccount();
                    a.Name  = name;
                    a.Email = email;
                    testers.Add(a);
                }
            }
            return(testers);
        }