1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-14 23:10:48 -05:00
2025-06-05 09:44:57 +02:00

24 lines
520 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();
var mail = new VerifyEmail
{
Token = "test-token",
Email = "test@bitwarden.com",
WebVaultUrl = "https://vault.bitwarden.com"
};
await mailer.SendEmail(mail, "test@bitwarden.com");
}
}