//Constructors
 public Trainee(string id, string lastName, string firstName, MyDate dateOfBirth, GenderEnum gender,
                string phoneNumber, AddressStruct address, string emailAddress, CarTypeEnum carType,
                GearTypeEnum gearType, DrivingSchool drivingSchool, string drivingTeacher,
                int drivingLessonsCount)
     : base(id, lastName, firstName, dateOfBirth, gender, phoneNumber, address, emailAddress)
 {
     CarType  = carType;
     GearType = gearType;
     FullDrivingSchoolDetails = drivingSchool;
     DrivingSchoolTeacher     = drivingTeacher;
     DrivingLessonsCount      = drivingLessonsCount;
     OwnedLisences            = new List <Lisence>();
     ScheduleList             = new List <ScheduleStruct>();
 }
Beispiel #2
0
 //Constructors
 public Test(int testId, string testerId, string traineeId, DateTime testDateAndTime,
             AddressStruct testLocation, string testerNotes, CarTypeEnum carType,
             DrivingSchool drivingSchool, string dmv)
 {
     TestId          = testId;
     TesterId        = testerId;
     TraineeId       = traineeId;
     TestDateAndTime = testDateAndTime;
     TestLocation    = testLocation;
     TesterNotes     = testerNotes;
     IsPassed        = null;
     CarType         = carType;
     DrivingSchool   = drivingSchool;
     DMV             = dmv;
 }