public async Task DeleteAsyncTest() { MailLists mailLists = new MailLists(Login); BrontoResult result = await AddListAsync(); Assert.IsFalse(result.HasErrors); mailListFilter filter = new mailListFilter() { name = new stringValue[] { new stringValue() { @operator = filterOperator.StartsWith, value = "Test List", operatorSpecified = true } } }; List <mailListObject> lists = await mailLists.ReadAsync(filter); Assert.IsTrue(lists.Count > 0); result = await mailLists.DeleteAsync(lists); Assert.IsFalse(result.HasErrors); Assert.IsTrue(result.Items.Count >= lists.Count); }
public async Task ReadAsyncTest() { MailLists mailLists = new MailLists(Login); List <mailListObject> lists = await mailLists.ReadAsync(); }