Пример #1
0
        private static void TestPhone(ICalling phone)
        {
            string[] numbersToCall = Console.ReadLine().Split();

            foreach (string number in numbersToCall)
            {
                Console.WriteLine(phone.Call(number));
            }

            string[] sitesToBrowse = Console.ReadLine().Split();

            foreach (string site in sitesToBrowse)
            {
                Console.WriteLine(phone.Call(site));
            }
        }
Пример #2
0
 public static void Call(ICalling phone, string number)
 {
     Console.WriteLine(phone.Call(number));
 }