diff options
author | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-12 11:04:43 -0800 |
---|---|---|
committer | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-12 11:04:43 -0800 |
commit | 880986510e1700c83d33a90b37da004cbff23824 (patch) | |
tree | 7fa51fa526ca96552036a1760dcaa390ca9889b3 | |
parent | 9a1ef469c68e982088721c571416ffd6a7dba5a1 (diff) | |
parent | 4530bd01a8be834ef1f4b724989fea85d591e9b2 (diff) | |
download | sendgrid-csharp-880986510e1700c83d33a90b37da004cbff23824.zip sendgrid-csharp-880986510e1700c83d33a90b37da004cbff23824.tar.gz sendgrid-csharp-880986510e1700c83d33a90b37da004cbff23824.tar.bz2 |
Merge branch 'us1882' of github.com:sendgrid/sendgrid-csharp into us1882
-rwxr-xr-x | SendGrid/SendGridMail/SendGrid.cs | 10 | ||||
-rwxr-xr-x | SendGrid/Tests/TestSendgridMessageSetup.cs | 8 |
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");
}
}
}
|