示例#1
0
        public void TestGetTemplate()
        {
            SendCloudClient client = new SendCloudClient(apiTriggerUser, apiKey);
            var result = client.QueryTemplates(new EmailTemplateCriteria()
        {
        });

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Any());
        }
示例#2
0
        public void TestAddTemplate()
        {
            SendCloudClient client = new SendCloudClient(apiTriggerUser, apiKey);
            var result = client.AddTemplate(new EmailTemplate
            {

            });

            Assert.IsNotNull(result);
            Assert.IsTrue(result > 0);
        }
示例#3
0
        public void TestTriggerAccount()
        {
            SendCloudClient client = new SendCloudClient(apiTriggerUser, apiKey);
            var result = client.SendMail(new MailAddress("*****@*****.**", "Appior"), new MailAddress("*****@*****.**"), "WelcomeToAppior", new Dictionary<string, string>
            {
                { "email", "Rynn Wang" },
                {"resetUrl","url"}
            });

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Any());
        }
示例#4
0
        public void TestBulkAccount()
        {
            SendCloudClient client = new SendCloudClient(apiBulkUser, apiKey);
            var result = client.SendMail(new MailAddress("*****@*****.**", "Appior"), new MailAddress("*****@*****.**"), "AppiorProjectMemberInvitation", new Dictionary<string, string>
            {
                { "email", "Rynn Wang" },
                {"currentUser","ANYONE"},
                {"invitationUrl","invitationUrlLLL"}
            });

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Any());
        }