refactor(SendMailHandler): remove TextToHtml

This commit is contained in:
2025-09-15 14:23:48 +02:00
parent b5fec7bb46
commit 991943d6bd
4 changed files with 28 additions and 29 deletions

View File

@@ -18,7 +18,7 @@ public class DocSignedNotificationTests : TestBase
services.AddTransient<SendSignedMailHandler>();
// overwrite EmailOutRepository
services.AddDbRepository(opt => opt.RegisterEntity<Fake.EGDbContext2Prod, EmailOut>(ctx => ctx.EMailOuts))
services.AddDbRepository(opt => opt.RegisterEntity<Fake.EGDbContext2Prod, EmailOut>(ctx => ctx.EMailOuts));
}
public override async Task Setup()

View File

@@ -20,6 +20,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using QuestPDF.Fluent;
using QuestPDF.Infrastructure;
using EnvelopeGenerator.Application.Common.Extensions;
namespace EnvelopeGenerator.Tests.Application;
@@ -174,7 +175,7 @@ public static class Extensions
public static CreateEnvelopeCommand CreateEnvelopeCommand(this Faker fake, int userId) => new()
{
Message = fake.Lorem.Paragraph(fake.Random.Number(2, 5)),
Title = fake.Lorem.Paragraph(fake.Random.Number(1, 2)),
Title = fake.Lorem.Words(fake.Random.Number(3, 4)).Join(" "),
UserId = userId,
UseSQLExecutor = false
};