summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Bischel <tyler.bischel@sendgrid.com>2012-01-12 11:04:43 -0800
committerTyler Bischel <tyler.bischel@sendgrid.com>2012-01-12 11:04:43 -0800
commit40be75615352899a26f1e02d81bc8b93176829df (patch)
tree8b76b8ce2470d03b44cc9c4275dcdd98903dd50e
parenta3056fb9bb4242c29dc6ff23ad54a087d0367c5d (diff)
parent1793fc79bf1b5f2868e1052d05476cb76913baf8 (diff)
downloadsendgrid-csharp-40be75615352899a26f1e02d81bc8b93176829df.zip
sendgrid-csharp-40be75615352899a26f1e02d81bc8b93176829df.tar.gz
sendgrid-csharp-40be75615352899a26f1e02d81bc8b93176829df.tar.bz2
Merge branch 'us1882' of github.com:sendgrid/sendgrid-csharp into us1882
-rwxr-xr-xSendGrid/SendGridMail/SendGrid.cs10
-rwxr-xr-xSendGrid/Tests/TestSendgridMessageSetup.cs8
2 files changed, 5 insertions, 13 deletions
diff --git a/SendGrid/SendGridMail/SendGrid.cs b/SendGrid/SendGridMail/SendGrid.cs
index 04330d1..3fe8a70 100755
--- a/SendGrid/SendGridMail/SendGrid.cs
+++ b/SendGrid/SendGridMail/SendGrid.cs
@@ -274,16 +274,6 @@ namespace SendGridMail
var rcpts = tos.Union(ccs.Union(bccs)).Select(address => address.Address);
return rcpts;
}
-
- private string Get(String field)
- {
- throw new NotImplementedException();
- }
-
- private void Set(String field, String value)
- {
- throw new NotImplementedException();
- }
#endregion
#region SMTP API Functions
diff --git a/SendGrid/Tests/TestSendgridMessageSetup.cs b/SendGrid/Tests/TestSendgridMessageSetup.cs
index ac7e33d..c2ad73d 100755
--- a/SendGrid/Tests/TestSendgridMessageSetup.cs
+++ b/SendGrid/Tests/TestSendgridMessageSetup.cs
@@ -154,9 +154,11 @@ namespace Tests
Assert.AreEqual(data.ContentStream, sg.Attachments.First().ContentStream, "Attach via attachment");
Assert.AreEqual(data.ContentStream, sg.Attachments.Skip(1).First().ContentStream, "Attach via attachment x2");
- //sg = new SendGrid(foo.Object);
- //sg.AddAttachment(data.ContentStream, ContentType);
- //Assert.AreEqual(data.ContentStream, sg.Attachments.Skip(1).First().ContentStream, "Attach via attachment");
+ sg = new SendGrid(foo.Object);
+ sg.AddAttachment(data.ContentStream, data.ContentType);
+ sg.AddAttachment(data.ContentStream, data.ContentType);
+ Assert.AreEqual(data.ContentStream, sg.Attachments.First().ContentStream, "Attach via stream");
+ Assert.AreEqual(data.ContentStream, sg.Attachments.Skip(1).First().ContentStream, "Attach via stream x2");
}
}
}