public void an_authorization_exception_should_be_thrown()
        {
            var client = new MailgunClient("samples.mailgun.org", "key-aaaaaaaaaaaaaa", 3);

            Assert.Throws <AuthenticationException>(() =>
                                                    client.SendMail(MailMessageBuilder.CreateMailWithoutAttachments()));
        }
Exemplo n.º 2
0
 public void an_invalid_operation_exception_should_be_thrown()
 {
     Assert.Throws <InvalidOperationException>(() => MailgunClientBuilder.GetClient("foobar.com").SendMail(MailMessageBuilder.CreateMailWithoutAttachments()));
 }