static void Main()
        {
            GSMTest.TestGSM();

            Console.WriteLine("=============");

            GSMCallHistoryTest.CallTest();
        }
Пример #2
0
 static void Main(string[] args)
 {
     // I recomend to comment one of the tests, because they are a bit
     // too long and that makes it a little hard to read.
     // For tasks conditions refer to Tasks.txt in the current project
     GSMTest.Test();
     GSMCallHistoryTest.Test();
 }
Пример #3
0
        public static void Main()
        {
            //creating GSMs
            var iPhone6 = new GSM("Apple", "IPhone 6", 1499.99M, "Tim Cook",
                                  new Battery("Integrated", 100F, 10F, BatteryType.LiIon),
                                  new Display(4.7F, 16000000));
            var galaxyS6 = new GSM("Samsung", "Galaxy S6");

            //adding phones in an array
            GSM[] phones = { iPhone6, galaxyS6 };

            //printing information of each phone
            foreach (var phone in phones)
            {
                Console.WriteLine(phone);
                Console.WriteLine(new string('-', 70));
            }

            //printing information of iPhone4s
            Console.WriteLine(GSM.IPhone4S);

            GSMCallHistoryTest.CallHistoryTest();
        }