public void RemoveContacts(CfRemoveContacts removeContacts) { var contacts = removeContacts.ContactId == null ? null : removeContacts.ContactId.ToList().ConvertAll(i => i.ToString(CultureInfo.InvariantCulture)).ToArray(); BaseRequest <string>(HttpMethod.Delete, new RemoveContacts(contacts == null ? string.Empty : string.Join(" ", contacts)), new CallfireRestRoute <Contact>()); }
public void Test_RemoveContactsIdNull() { var removeContacts = new CfRemoveContacts { ContactId = null }; Client.RemoveContacts(removeContacts); }
public void Test_RemoveContactsComplete() { var removeContacts = new CfRemoveContacts { ContactId = new[] { 169500183001 } }; Client.RemoveContacts(removeContacts); }
public void Test_RemoveContactsInvalidId() { var removeContacts = new CfRemoveContacts { ContactId = new [] { (long)489684631 } }; Client.RemoveContacts(removeContacts); }
public void RemoveContacts(CfRemoveContacts removeContacts) { var contacts = removeContacts.ContactId == null ? null : removeContacts.ContactId.ToList().ConvertAll(i => i.ToString(CultureInfo.InvariantCulture)).ToArray(); ContactService.RemoveContacts(new RemoveContacts(contacts == null ? string.Empty : string.Join(" ", contacts))); }