warnings
This commit is contained in:
parent
4b9b8d5e78
commit
34c7b153ff
1 changed files with 6 additions and 6 deletions
|
|
@ -19,11 +19,11 @@ namespace Yavsc.Org.Tests
|
|||
{
|
||||
this.output = output;
|
||||
_serverFixture = serverFixture;
|
||||
_logger = serverFixture.Logger;
|
||||
_logger = serverFixture.Logger!;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SendEMailSynchrone()
|
||||
public async Task SendEMailSynchrone()
|
||||
{
|
||||
|
||||
using IServiceScope scope = _serverFixture.Services.CreateScope();
|
||||
|
|
@ -32,12 +32,12 @@ namespace Yavsc.Org.Tests
|
|||
scope.ServiceProvider.GetRequiredService<ISmtpClientFactory>());
|
||||
|
||||
output.WriteLine("SendEMailSynchrone ...");
|
||||
mailSender.SendEmailAsync
|
||||
await mailSender.SendEmailAsync
|
||||
(
|
||||
_serverFixture.SiteSettings.Owner.Name,
|
||||
_serverFixture.SiteSettings.Owner.EMail,
|
||||
_serverFixture.SiteSettings!.Owner.Name,
|
||||
_serverFixture.SiteSettings!.Owner.EMail,
|
||||
$"monthly email",
|
||||
"test boby monthly email").Wait();
|
||||
"test boby monthly email");
|
||||
|
||||
// Assert the SMTP roundtrip was short-circuited by the
|
||||
// recording fake installed in WebServerFixture: exactly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue