This commit is contained in:
Paul Schneider 2026-08-21 20:33:15 +01:00
commit 34c7b153ff
Signed by: notazof
GPG key ID: 1DD5D838E5343B06

View file

@ -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