public void Initialize()
 {
     var contactsResponse = contactsFactory.ListContacts().SetPhoneNumber(validTestNumber).Execute();
     if (contactsResponse.List.Count > 0)
     {
         contact = contactsResponse.List[0];
     } else
     {
         contact = contactsFactory.CreateContact().SetPhoneNumber(validTestNumber).Execute();
     }
 }
        public void Initialize()
        {
            var contactsResponse = contactsFactory.ListContacts().SetPhoneNumber(validTestNumber).Execute();
            if (contactsResponse.List.Count > 0)
                contact = contactsResponse.List[0];
            else
                contact = contactsFactory.CreateContact().SetPhoneNumber(validTestNumber).Execute();

            var groupsResponse = contactsFactory.ListGroups().SetName("example group").Execute();
            if (groupsResponse.List.Count > 0)
                group = groupsResponse.List[0];
            else
                group = contactsFactory.CreateGroup().SetName("example group").Execute();

            contactsFactory.BindContactToGroup(contact.Id, group.Id).Execute();
        }