Exemplo n.º 1
0
 public Tester()
 {
     futureTests        = new List <Test>(); //טסטר חדש ולכן אין לו טסטים שנקבעו
     scedule            = new bool[6, 5];
     rating             = new TesterRating();
     birthDate          = new DateTime(1970, 1, 1);
     validCertification = DateTime.Now;
     experienceYears    = 0;
 }
Exemplo n.º 2
0
 /// <summary>
 /// בנאי של הטסטר
 /// </summary>
 public Tester(string myID, string myLastName, string myFirstName,
               DateTime myBirthDate, Gender myGender, string myPhoneNum, Address myAddress,
               DateTime myValidCertification, int myExperienceYears, int myMaxTestPerWeek,
               List <VehicleType> myVehicleType, List <GearBox> myGearBox, bool[,] myScedule,
               float myMaxDistenceToTest)
 {
     _ID                = myID;
     lastName           = myLastName;
     firstName          = myFirstName;
     birthDate          = myBirthDate;
     gender             = myGender;
     phoneNum           = myPhoneNum;
     address            = myAddress;
     validCertification = myValidCertification;
     experienceYears    = myExperienceYears;
     maxTestPerWeek     = myMaxTestPerWeek;
     vehicleType        = myVehicleType;
     gearBox            = myGearBox;
     scedule            = new bool[6, 5];
     scedule            = myScedule;
     futureTests        = new List <Test>(); //טסטר חדש ולכן אין לו טסטים שנקבעו
     maxDistenceToTest  = myMaxDistenceToTest;
     rating             = new TesterRating();
 }