public void HasGetSet()
 {
     var value = new EstablishmentContactInfo();
     var entity = new Establishment { PartnerContactInfo = value };
     entity.ShouldNotBeNull();
     entity.PartnerContactInfo.ShouldEqual(value);
 }
Example #2
0
            public void HasGetSet()
            {
                var value  = new EstablishmentContactInfo();
                var entity = new Establishment {
                    PartnerContactInfo = value
                };

                entity.ShouldNotBeNull();
                entity.PartnerContactInfo.ShouldEqual(value);
            }
Example #3
0
        protected internal Establishment()
        {
            PublicContactInfo  = new EstablishmentContactInfo();
            PartnerContactInfo = new EstablishmentContactInfo();

            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            EmailDomains = new Collection <EstablishmentEmailDomain>();
            Urls         = new Collection <EstablishmentUrl>();
            Names        = new Collection <EstablishmentName>();
            Affiliates   = new Collection <Affiliation>();
            Ancestors    = new Collection <EstablishmentNode>();
            Children     = new Collection <Establishment>();
            Offspring    = new Collection <EstablishmentNode>();
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }
Example #4
0
        protected internal Establishment()
        {
            PublicContactInfo = new EstablishmentContactInfo();
            PartnerContactInfo = new EstablishmentContactInfo();

            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            EmailDomains = new Collection<EstablishmentEmailDomain>();
            Urls = new Collection<EstablishmentUrl>();
            Names = new Collection<EstablishmentName>();
            Affiliates = new Collection<Affiliation>();
            Ancestors = new Collection<EstablishmentNode>();
            Children = new Collection<Establishment>();
            Offspring = new Collection<EstablishmentNode>();
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }