Пример #1
0
        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);
        }
Пример #2
0
 public async Task ReadAsyncTest()
 {
     MailLists             mailLists = new MailLists(Login);
     List <mailListObject> lists     = await mailLists.ReadAsync();
 }