예제 #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());
        }