Exemplo n.º 1
0
        public void LoadBrowsingList(string inputBrowsing)
        {
            var listOfUrl = inputBrowsing
                            .Split(new[] { ' ' })
                            .ToList();

            foreach (var phoneNumber in listOfUrl)
            {
                try
                {
                    var validUrl = new Browsing(phoneNumber);
                    Console.WriteLine(this.PrintBrowse(validUrl));
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
Exemplo n.º 2
0
        public void LoadBrowsingList(string inputBrowsing)
        {
            var listOfUrl = inputBrowsing
                            .Split(new[] { ' ' })
                            .ToList();

            foreach (var phoneNumber in listOfUrl)
            {
                //try
                //{
                var validUrl = new Browsing(phoneNumber);
                browsings.Add(validUrl);
                //Console.WriteLine(this.PrintBrowse(validUrl));
                //}
                //catch (Exception ex)
                //{
                //    Console.WriteLine(ex.Message);
                //}
            }
        }
Exemplo n.º 3
0
 public string PrintBrowse(Browsing newBrowse)
 {
     return(newBrowse.PrintBrowsing());
 }