static void Main() { // Static IPhone4S TEST Console.WriteLine(GSM.IPhone4S); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); // GSM TEST var gsmTest = new GSMTest(); foreach (var gsm in gsmTest.ListOFGSMs) { Console.WriteLine(gsm); } Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); // CALL History TEST GSMCallHistoryTest.CallHistoryTest(); }
static void Main(string[] args) { GSM[] phones = { new GSM("Nexus", "Samsung",350,null,new Battery("Lion",8,4,BatteryType.NiMH),new Display(5,40000000)), new GSM("G3","LG"), new GSM("Iphone4","Apple") }; foreach (var phone in phones) { Console.WriteLine(phone); } Console.WriteLine(GSM.iPhone4S); GSMCallHistoryTest a = new GSMCallHistoryTest(); a.CallHistoryTest(); }
static void Main(string[] args) { GSM[] phones = { new GSM("Nexus", "Samsung", 350, null, new Battery("Lion", 8, 4, BatteryType.NiMH), new Display(5, 40000000)), new GSM("G3", "LG"), new GSM("Iphone4", "Apple") }; foreach (var phone in phones) { Console.WriteLine(phone); } Console.WriteLine(GSM.iPhone4S); GSMCallHistoryTest a = new GSMCallHistoryTest(); a.CallHistoryTest(); }
static void Main() { Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Battery myBattery = new Battery("Bateria"); Display myDisplay = new Display(); GSM myGSM = new GSM("Nokia","Nokia", 100.23M, "Pesho",myBattery,myDisplay); string myGSMinfo = myGSM.ToString(); Console.WriteLine(myGSMinfo); GSM mySecondGSM = GSM.IPhone4S; Console.WriteLine(mySecondGSM); GSMTest test = new GSMTest(); test.Create4GSMs(); GSMCallHistoryTest secondTest = new GSMCallHistoryTest(); secondTest.CallHistoryTest(); }
static void Main() { GSMTest.GSM_Test(); GSMCallHistoryTest.CallHistoryTest(); }