public static void Main()
        {
            var phoneNumbers = ParseInput();
            var webSites     = ParseInput();

            var smartphone = new Smartphone();

            foreach (var phoneNumber in phoneNumbers)
            {
                Console.WriteLine(smartphone.Call(phoneNumber));
            }
            foreach (var webSite in webSites)
            {
                Console.WriteLine(smartphone.Browse(webSite));
            }
        }
Esempio n. 2
0
        public static void Main()
        {
            var numbers = Console.ReadLine().Split(' ');
            var sites   = Console.ReadLine().Split(' ');

            ISmartphone phone = new Smartphone("Smartphone");

            foreach (var numb in numbers)
            {
                Console.WriteLine(phone.Call(numb));
            }

            foreach (var site in sites)
            {
                Console.WriteLine(phone.Browse(site));
            }
        }