public async Task GetAllTemplates()
        {
            TemplateList templateList = await this.client.GetAllTemplatesAsync();

            Assert.IsNotNull(templateList);
            Assert.AreNotEqual(templateList.templates.Count, 0);

            foreach (TemplateResponse template in templateList.templates)
            {
                NotifyAssertions.AssertTemplateResponse(template);
            }
        }
        public void GetAllTemplates()
        {
            TemplateList templateList = this.client.GetAllTemplates();

            Assert.IsNotNull(templateList);
            Assert.IsTrue(templateList.templates.Count > 0);

            foreach (TemplateResponse template in templateList.templates)
            {
                NotifyAssertions.AssertTemplateResponse(template);
            }
        }
        public async Task GetAllEmailTemplates()
        {
            const String type         = "email";
            TemplateList templateList = await this.client.GetAllTemplatesAsync(type);

            Assert.IsNotNull(templateList);
            Assert.AreNotEqual(templateList.templates.Count, 0);

            foreach (TemplateResponse template in templateList.templates)
            {
                NotifyAssertions.AssertTemplateResponse(template, type);
            }
        }
        public void GetAllEmailTemplates()
        {
            const String type         = "email";
            TemplateList templateList = this.client.GetAllTemplates(type);

            Assert.IsNotNull(templateList);
            Assert.IsTrue(templateList.templates.Count > 0);

            foreach (TemplateResponse template in templateList.templates)
            {
                NotifyAssertions.AssertTemplateResponse(template, type);
            }
        }
示例#5
0
        public async Task GetAllSMSTemplates()
        {
            const String type         = "sms";
            TemplateList templateList = await this.client.GetAllTemplatesAsync(type);

            Assert.IsNotNull(templateList);
            Assert.IsTrue(templateList.templates.Count > 0);

            foreach (TemplateResponse template in templateList.templates)
            {
                NotifyAssertions.AssertTemplateResponse(template, type);
            }
        }
        public void GetAllSMSTemplates()
        {
            const String type         = "sms";
            TemplateList templateList = this.client.GetAllTemplates(type);

            Assert.IsNotNull(templateList);
            Assert.AreNotEqual(templateList.templates.Count, 0);

            foreach (TemplateResponse template in templateList.templates)
            {
                NotifyAssertions.AssertTemplateResponse(template, type);
            }
        }