public DriverLicenseRecord(int id, string licenseClass, DateTime expiration, PersonRecord person)
 {
     this.id = id;
     this.Class = licenseClass;
     this.Expires = expiration;
     this.OwnerFirstName = person.FirstName;
     this.OwnerLastName = person.LastName;
     this.OwnerBirthDate = person.BirthDate;
 }
        public void PersonRecord_construction_test()
        {
            string firstName = "Jack";
            string lastName = "Sparrow";

            PersonRecord person = new PersonRecord(firstName, lastName);

            /// Identified и Person должны быть интерфейсами
            Assert.IsInstanceOf(typeof(Identified<string>), person);
            Assert.IsInstanceOf(typeof(Person), person);

            Assert.NotNull(person.Id);
            Assert.IsInstanceOf(typeof(string), person.Id);
            Assert.AreNotEqual(Guid.Empty.ToString(), person.Id);

            Assert.AreEqual(firstName, person.FirstName);
            Assert.AreEqual(lastName, person.LastName);
            Assert.LessOrEqual(person.BirthDate, DateTime.Now);
        }
 public void setUp()
 {
     this.person = new PersonRecord("Jack", "Sparrow");
 }