-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs: #564
- Loading branch information
Showing
13 changed files
with
53 additions
and
51 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
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 |
---|---|---|
|
@@ -57,7 +57,7 @@ public async Task SendMail_WithUserWithoutEmail_DoesntCallService() | |
A.CallTo(() => _userRepository.GetUserMailData(UserId)).Returns((true, null)); | ||
|
||
// Act | ||
await _sut.SendMail(data).ConfigureAwait(false); | ||
await _sut.SendMail(data); | ||
|
||
// Assert | ||
A.CallTo(() => _mailingService.CreateMailProcess(A<string>._, A<string>._, A<Dictionary<string, string>>._)).MustNotHaveHappened(); | ||
|
@@ -67,11 +67,11 @@ public async Task SendMail_WithUserWithoutEmail_DoesntCallService() | |
public async Task SendMail_WithValid_CallsExpected() | ||
{ | ||
// Arrange | ||
var data = new MailData(UserId, "testTemplate", new Dictionary<string, string>()); | ||
var data = new MailData(UserId, "testTemplate", Enumerable.Empty<MailParameter>()); | ||
A.CallTo(() => _userRepository.GetUserMailData(UserId)).Returns((true, "[email protected]")); | ||
|
||
// Act | ||
await _sut.SendMail(data).ConfigureAwait(false); | ||
await _sut.SendMail(data); | ||
|
||
// Assert | ||
A.CallTo(() => _mailingService.CreateMailProcess("[email protected]", "testTemplate", A<Dictionary<string, string>>._)).MustHaveHappenedOnceExactly(); | ||
|
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
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.