1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-15 15:30:49 -05:00
2025-06-09 10:50:24 +02:00

24 lines
547 B
C#

using Bit.Core.Auth.UserFeatures.Registration.VerifyEmail;
using Bit.Core.Platform.Services;
using Xunit;
namespace Bit.Core.Test.Platform;
public class MailerTest
{
[Fact]
public async Task SendEmailAsync()
{
var mailer = new Mailer(new HandlebarMailRenderer());
var mail = new VerifyEmail
{
Token = "test-token",
Email = "test@bitwarden.com",
WebVaultUrl = "https://vault.bitwarden.com"
};
await mailer.SendEmail(mail, "test@bitwarden.com");
}
}