public bool Equals(Owner o)
 {
     return (
         base.Equals(o) &&
         this.BusinessSector.Equals(o.BusinessSector) &&
         this.Industry.Equals(o.Industry) &&
         this.IsRegulated == o.IsRegulated
         );
 }
        public void TestEqualsMethod()
        {
            Owner anOwner, anotherOwner;

            anOwner = new Owner(121,
                                "ABC Trucking Co.",
                                new Address("123 M St.",
                                            "Houston",
                                            "TX",
                                            "70000",
                                            "888-ABC-TRUCK",
                                            "United States"),
                                "Commercial",
                                "Trucking",
                                false);

            anotherOwner = new Owner(121,
                                     "ABC Trucking Co.",
                                     new Address("123 M St.",
                                                 "Houston",
                                                 "TX",
                                                 "70000",
                                                 "888-ABC-TRUCK",
                                                 "United States"),
                                     "Commercial",
                                     "Trucking",
                                     false);

            Assert.IsTrue(anOwner.Equals(anotherOwner));

            anOwner.Id = 131;

            Assert.IsFalse(anOwner.Equals(anotherOwner));
        }