//Copy Constructor to Test public Test(Test testToCopy) { numOfTest = testToCopy.num_of_test; IDofTester = testToCopy.ID_tester; IDofTrainee = testToCopy.ID_Trainee; dateOfTest = testToCopy.dateOfTest; dateAndHourOfTest = testToCopy.dateAndHourOfTest; leavingAdress = testToCopy._leavingAdress; endAdress = testToCopy._endAdress; carTypeOfThisTest = testToCopy._typeCarOfTest; reportsOfTest = testToCopy._reportsOfTest; succeedOrFailed = testToCopy._succeedOrFailed; remark = testToCopy._remark; }
//Defaukt constructor public Test() { numOfTest = Configuration.numberOfTest; IDofTester = 0; IDofTrainee = 0; dateOfTest = new DateTime(2019, 02, 01); dateAndHourOfTest = new DateTime(); leavingAdress = new StructTypes.Adress(); endAdress = new StructTypes.Adress(); carTypeOfThisTest = new myEnums.carType(); reportsOfTest = new StructTypes.testReport(false); succeedOrFailed = checkResults(); remark = ""; }