refactor(SendMailHandler): remove TextToHtml
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user