Exemple #1
0
        public void CanGetCustomerAdditionalInfo()
        {
            // Arrange & Act
            var customer = _context.Person.Single(p => p.BusinessEntityId == 291);
            var info     = AdditionalContactInfo.Deserialize(customer.AdditionalContactInfo);

            //Assert
            Assert.NotNull(customer);
            Assert.NotNull(info);
        }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (AdditionalContactInfo == null ? 0 : AdditionalContactInfo.GetHashCode());
         hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode());
         hash = hash * 23 + (Demographics == null ? 0 : Demographics.GetHashCode());
         hash = hash * 23 + (EmailPromotion == default(int) ? 0 : EmailPromotion.GetHashCode());
         hash = hash * 23 + (FirstName == null ? 0 : FirstName.GetHashCode());
         hash = hash * 23 + (LastName == null ? 0 : LastName.GetHashCode());
         hash = hash * 23 + (MiddleName == null ? 0 : MiddleName.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (NameStyle == default(bool) ? 0 : NameStyle.GetHashCode());
         hash = hash * 23 + (PersonType == null ? 0 : PersonType.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         hash = hash * 23 + (Suffix == null ? 0 : Suffix.GetHashCode());
         hash = hash * 23 + (Title == null ? 0 : Title.GetHashCode());
         return(hash);
     }
 }