//Constructors public Person(string id, string lastName, string firstName, MyDate dateOfBirth, GenderEnum gender, string phoneNumber, AddressStruct address, string emailAddress) { Id = id; LastName = lastName; FirstName = firstName; DateOfBirth = dateOfBirth; Gender = gender; PhoneNumber = phoneNumber; Address = address; EmailAddress = emailAddress; }
//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>(); }
//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; }
//Constructors public Tester(string id, string lastName, string firstName, MyDate dateOfBirth, GenderEnum gender, string phoneNumber, AddressStruct address, string emailAddress, int yearsOfExperience, int maximalWeeklylTests, CarTypeEnum carType, bool[,] workTime, int maximalDistance, int weeklyTestsCount, List <ScheduleStruct> scheduleList) : base(id, lastName, firstName, dateOfBirth, gender, phoneNumber, address, emailAddress) { YearsOfExperience = yearsOfExperience; MaximalWeeklyTests = maximalWeeklylTests; CarType = carType; WorkTime = workTime; MaximalDistance = maximalDistance; WeeklyTestsCount = 0; foreach (ScheduleStruct schedule in scheduleList) { ScheduleList.Add(schedule); } }
//Constructors public DistanceStruct(AddressStruct originAddress, AddressStruct destinationAddress, double distance) { OriginAddress = originAddress; DestinationAddress = destinationAddress; Distance = distance; }