public void DisableBcc()
        {
            var header = new Header();
            var sendgrid = new SendGridMessage(header);

            sendgrid.DisableBcc();

            var json = header.JsonString();
            Assert.AreEqual("{\"filters\" : {\"bcc\" : {\"settings\" : {\"enable\" : \"0\"}}}}", json);
        }
        public void Test_DisablingBcc()
        {
            var mail = BasicMailBuilder
                .DisableBcc()
                .Build();

            var message = new SendGridMessage();
            message.DisableBcc();
            Assert.IsFalse(string.IsNullOrEmpty(message.Header.JsonString()));
            Assert.AreEqual(message.Header.JsonString(), mail.Header.JsonString());
        }
Beispiel #3
0
 public MailBuilder DisableBcc()
 {
     sendgrid.DisableBcc();
     return(this);
 }