Example #1
0
        public void ValidateFather()
        {
            Person       father = new Person("King Shan", "Male", ListOfRelations);
            Person       mother = new Person("Queen Anga", "Female", ListOfRelations);
            Relationship spouse = new Relationship(father, mother, "Spouse");

            ListOfRelations.Add(spouse);
            Person       person   = new Person("Chit", "Male", ListOfRelations);
            Relationship relation = new Relationship(mother, person, "Child");

            ListOfRelations.Add(relation);

            Person findfather = person.Father();

            Assert.AreEqual(father, findfather);
        }