Beispiel #1
0
        static void Main(string[] args)
        {


            Console.WriteLine("{0,10}TASK FROM 1-4",string.Empty);
            Console.WriteLine();
            GSM newGSMOne = new GSM("Lumia 900", "Nokia", 900, "Vasil");//instance with full contrsuctor arguments
            newGSMOne.PrintGSMInfo();
            newGSMOne.BaterryInfo.PrintBaterryInfo();
            newGSMOne.DisplayInfo.PrintDisplayInfo();

            Console.WriteLine();
            Console.WriteLine("{0,10}TASK FROM 5-7", string.Empty);
            GSMTest.TestGSM();

            Console.WriteLine();
            Console.WriteLine("{0,10}TASK FROM 8-12", string.Empty);
            GSMCallHistoryTest.AddCallTest();
            GSMCallHistoryTest.PrintCallHistoty();
            GSMCallHistoryTest.PrintBill();
            Console.WriteLine();
            GSM.RemoveCall();
            Console.Write("Total Amout after we delete longest call is {0}.");
            GSMCallHistoryTest.PrintBill();
            GSM.RemoveAllCalls();
            Console.WriteLine("History after removing all Calls.");
            GSMCallHistoryTest.PrintCallHistoty();  
            
        }