Exemplo n.º 1
0
 public MailBuilder DisableSpamCheck()
 {
     sendgrid.DisableSpamCheck();
     return(this);
 }
        public void Test_DisablingSpamCheck()
        {
            var mail = BasicMailBuilder
                .DisableSpamCheck()
                .Build();

            var message = new SendGridMessage();
            message.DisableSpamCheck();
            Assert.IsFalse(string.IsNullOrEmpty(message.Header.JsonString()));
            Assert.AreEqual(message.Header.JsonString(), mail.Header.JsonString());
        }
Exemplo n.º 3
0
        public void DisableSpamCheck()
        {
            var header = new Header();
            var sendgrid = new SendGridMessage(header);

            sendgrid.DisableSpamCheck();

            var json = header.JsonString();
            Assert.AreEqual("{\"filters\" : {\"spamcheck\" : {\"settings\" : {\"enable\" : \"0\"}}}}", json);
        }