diff options
author | Brandon West <brawest@gmail.com> | 2014-05-21 17:23:35 -0600 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2014-05-21 17:23:35 -0600 |
commit | e497caefcf35acf753d35f41c209fa09f6d40e99 (patch) | |
tree | b787e0c3007922cb1291a52b2efc1d6922d8813e /SendGrid/Tests/Transport/TestWebApi.cs | |
parent | c48471c02bc8e9d47e4735fda5e3244636b118ef (diff) | |
download | sendgrid-csharp-e497caefcf35acf753d35f41c209fa09f6d40e99.zip sendgrid-csharp-e497caefcf35acf753d35f41c209fa09f6d40e99.tar.gz sendgrid-csharp-e497caefcf35acf753d35f41c209fa09f6d40e99.tar.bz2 |
change namespace from SendGridMail to SendGrid, change SendGrid type to SendGridMessage, update to depend on SendGrid.SmtpApi, remove CC and BCC methods since they are not supported in the web API currently.
Diffstat (limited to 'SendGrid/Tests/Transport/TestWebApi.cs')
-rw-r--r-- | SendGrid/Tests/Transport/TestWebApi.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/SendGrid/Tests/Transport/TestWebApi.cs b/SendGrid/Tests/Transport/TestWebApi.cs index 71df619..39aa992 100644 --- a/SendGrid/Tests/Transport/TestWebApi.cs +++ b/SendGrid/Tests/Transport/TestWebApi.cs @@ -5,7 +5,7 @@ using System.Net; using System.Net.Mail; using Moq; using NUnit.Framework; -using SendGridMail; +using SendGrid; namespace Tests.Transport { @@ -37,8 +37,6 @@ namespace Tests.Transport { // Test Variables const string toAddress = "foobar@outlook.com"; - const string ccAddress = "foo@outlook.com"; - const string bccAddress = "bar@outlook.com"; const string fromAddress = "test@outlook.com"; const string subject = "Test Subject"; const string textBody = "Test Text Body"; @@ -47,10 +45,8 @@ namespace Tests.Transport var testHeader = new Dictionary<string, string> { { headerKey, "headervalue" } }; const string categoryName = "Example Category"; - var message = new SendGrid(); + var message = new SendGridMessage(); message.AddTo(toAddress); - message.AddCc(ccAddress); - message.AddBcc(bccAddress); message.From = new MailAddress(fromAddress); message.Subject = subject; message.Text = textBody; @@ -63,8 +59,6 @@ namespace Tests.Transport Assert.True(result.Any(r => r.Key == "api_user" && r.Value == TestUsername)); Assert.True(result.Any(r => r.Key == "api_key" && r.Value == TestPassword)); Assert.True(result.Any(r => r.Key == "to[]" && r.Value == toAddress)); - Assert.True(result.Any(r => r.Key == "cc[]" && r.Value == ccAddress)); - Assert.True(result.Any(r => r.Key == "bcc[]" && r.Value == bccAddress)); Assert.True(result.Any(r => r.Key == "from" && r.Value == fromAddress)); Assert.True(result.Any(r => r.Key == "subject" && r.Value == subject)); Assert.True(result.Any(r => r.Key == "text" && r.Value == textBody)); |