Example #1
0
        public ClientSecretItem GetItem(int rowNumber)
        {
            var res = new ClientSecretItem(Driver, rowNumber);

            res.Do(() => res._typeFunc.Invoke()).Until(() => res._typeFunc.Invoke() != null);
            return(res);
        }
Example #2
0
        public List <ClientSecretItem> GetItems()
        {
            List <ClientSecretItem> res = new List <ClientSecretItem>();

            for (int i = 0; i < 200; i++)
            {
                var item = new ClientSecretItem(Driver, i + 1);
                try
                {
                    res.Do(() => item._typeFunc.Invoke()).Until(() => item._typeFunc.Invoke() != null);
                    res.Add(item);
                }
                catch
                {
                    break;
                }
            }

            return(res);
        }