refactor(DocSignedNotificationTests): add again EmailOut DbRepository using Fake.EGDbContext2Prod

- create base EGDbContextBase to be able to add custom DbContextOptions
This commit is contained in:
2025-09-15 14:02:58 +02:00
parent 9eaa777fb6
commit b5fec7bb46
3 changed files with 17 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
using AutoMapper;
using DigitalData.Core.Abstraction.Application.Repository;
using DigitalData.Core.Infrastructure;
using DigitalData.EmailProfilerDispatcher.Abstraction.Entities;
using EnvelopeGenerator.Application.Common.Dto.EnvelopeReceiver;
using EnvelopeGenerator.Application.Common.Notifications.DocSigned;
using EnvelopeGenerator.Application.Common.Notifications.DocSigned.Handlers;
@@ -14,6 +16,9 @@ public class DocSignedNotificationTests : TestBase
protected override void ConfigureServices(IServiceCollection services)
{
services.AddTransient<SendSignedMailHandler>();
// overwrite EmailOutRepository
services.AddDbRepository(opt => opt.RegisterEntity<Fake.EGDbContext2Prod, EmailOut>(ctx => ctx.EMailOuts))
}
public override async Task Setup()