protected void AddPhoneAssociation(PhoneAssociation phoneAssociation) { if (phoneAssociation != null) { if (_phoneAssociations == null) { _phoneAssociations = new List <PhoneAssociation>(); } phoneAssociation.ResponseDictionary = this.ResponseDictionary; _phoneAssociations.Add(phoneAssociation); } }
public void EntityIdTypeConstraint() { var id = new EntityId(EntityId.EntityType.Business, Guid.NewGuid()); var assoc = new PhoneAssociation(id, new ResponseDictionary(null)); }
private static void DumpPhoneAssociation(PhoneAssociation association, int depth, int indent) { WriteLine(indent, "Contact Type: {0}", association.ContactType.HasValue ? association.ContactType.Value.ToString() : "null"); WriteLine(indent, "Phone:"); DumpPhone(association.Phone, depth, indent + DefaultIndent); }
private static void DumpPhoneAssociation(PhoneAssociation association, int depth, int indent) { WriteLine(indent, "Phone:"); DumpPhone(association.Phone, depth, indent + DefaultIndent); }
public void EntityIdTypeConstraint() { var id = new EntityId(EntityId.EntityType.Business, Guid.NewGuid(), Durability.Durable); var assoc = new PhoneAssociation(id, new ResponseDictionary(null)); }