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