summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");
}
}
}