Example #1
0
        public static void test()
        {
            GSM  telephone = new GSM("S4", "Samsung");
            Call numberone = new Call(telephone, DateTime.Now, 300, "0898855825");

            telephone.AddCall(numberone);
            Call numbertwo = new Call(telephone, DateTime.Now, 350, "0898855925");

            telephone.AddCall(numbertwo);
            Call numberthree = new Call(telephone, DateTime.Now, 300, "0898854825");

            telephone.AddCall(numberthree);

            telephone.PrintCall();
            Console.WriteLine("///////////////////");
            telephone.PriceCall();
            Console.WriteLine("///////////////////");

            telephone.DeleteCall(2);
            telephone.PrintCall();
            Console.WriteLine("//////////////////");
            telephone.PriceCall();
            Console.WriteLine("//////////////////");

            telephone.ClearCall();
            telephone.PrintCall();
        }