-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
715 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,13 @@ public async Task SendAsync() | |
{ | ||
new MailPersonalization() | ||
{ | ||
To = new[] { new MailAddress("[email protected]", "Bob Smith") } | ||
} | ||
To = new[] { new MailAddress("[email protected]", "Bob Smith") }, | ||
CustomArguments = new[] | ||
{ | ||
new KeyValuePair<string, string>("foo", "bar"), | ||
}, | ||
SendAt = DateTime.Now, | ||
}, | ||
}; | ||
|
||
var mailSettings = new MailSettings() | ||
|
@@ -193,7 +198,9 @@ public async Task EmailExceedsSizeLimit() | |
new MailContent("text/html", new string('v', 10 * 1024 * 1024)) | ||
}; | ||
|
||
var mail = new Mail(null); | ||
var mockHttp = new MockHttpMessageHandler(); | ||
var client = Utils.GetFluentClient(mockHttp); | ||
var mail = new Mail(client); | ||
|
||
// Act | ||
var result = await Should.ThrowAsync<Exception>(mail.SendAsync(personalizations, subject, contents, from)).ConfigureAwait(false); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.