public void FixtureSetup()
        {
            Client = new SoapContactClient(MockClient.User(), MockClient.Password());

            ContactId = 165251012001;
            ContactListId = 188505001;
            QueryContact = new CfQueryContacts(1000, 0, null, null, null);
            GetContactHistory = new CfGetContactHistory(1000, 0, ContactId);

            var contact1 = new CfContact(null, "Contact1_Name", "Contact1_LastName", null, "14252163710", null, null, null, null, null);
            var contact2 = new CfContact(null, "Contact2_Name", "Contact2_LastName", null, "14252163710", null, null, null, null, null);
            CfContact[] contacts = { contact1, contact2 };
            CreateContactList = new CfCreateContactList(null, "NewContactListTest", false, new CfContactSource(contacts));

            object[] contacts2 = { ContactId };
            CreateContactList2 = new CfCreateContactList(null, "NewContactListTest2", false, new CfContactSource(contacts2));

            var contactNumbers = new CfContactSourceNumbers("14252163710", new[] { "homePhone" });
            CfContactSourceNumbers[] contacts3 = { contactNumbers };
            CreateContactList3 = new CfCreateContactList(null, "NewContactListTest3", false, new CfContactSource(contacts3));

            QueryContactLists = new CfQuery();

            const long contactId = 165332794001;
            const long contactListId = 188518001;
            object[] contact = { contactId };
            AddContactsToList = new CfContactListRequest(contactListId, false, new CfContactSource(contact));

            RemoveContactsFromList = new CfRemoveContactsFromList(contactListId, contactId);

            ContactLastName = "ContactLastNameSoap";
            ContactFirstName = "ContactFirstNameSoap";
        }
 public Contact(CfContact source)
 {
     if (source.Id.HasValue)
     {
         id = source.Id.Value;
         idSpecified = true;
     }
     firstName = source.FirstName;
     lastName = source.LastName;
     zipcode = source.Zipcode;
     homePhone = source.HomePhone;
     workPhone = source.WorkPhone;
     mobilePhone = source.MobilePhone;
     externalId = source.ExternalId;
     externalSystem = source.ExternalSystem;
     AnyAttr = source.AnyAttr;
 }
 public void UpdateContacts(CfContact[] updateContacts)
 {
     var arrayUpdateContacts = updateContacts == null ? null : updateContacts.Select(ContactMapper.ToContact).ToArray();
     ContactService.UpdateContacts(arrayUpdateContacts);
 }
 internal static Contact ToContact(CfContact source)
 {
     return source == null ? null : new Contact(source);
 }