From e49be2b7c3f1fa50835e57d683dc1a29ca894c66 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 29 Aug 2025 09:57:57 +0200 Subject: [PATCH] make set up Setup --- EnvelopeGenerator.Tests.Application/HistoryTests.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/EnvelopeGenerator.Tests.Application/HistoryTests.cs b/EnvelopeGenerator.Tests.Application/HistoryTests.cs index 076cc8f9..a452fc96 100644 --- a/EnvelopeGenerator.Tests.Application/HistoryTests.cs +++ b/EnvelopeGenerator.Tests.Application/HistoryTests.cs @@ -1,7 +1,10 @@ -using EnvelopeGenerator.Application; +using DigitalData.Core.Abstraction.Application.Repository; +using EnvelopeGenerator.Application; +using EnvelopeGenerator.Application.Dto.Receiver; using EnvelopeGenerator.Application.Histories.Commands; using EnvelopeGenerator.Application.Histories.Queries; using EnvelopeGenerator.Domain; +using EnvelopeGenerator.Domain.Entities; using EnvelopeGenerator.Infrastructure; using MediatR; using Microsoft.EntityFrameworkCore; @@ -19,7 +22,7 @@ public class HistoryTests private IMediator Mediator => _host.Services.GetRequiredService(); [SetUp] - public void Setup() + public async Task Setup() { _host = Host.CreateDefaultBuilder() .ConfigureAppConfiguration((context, config) => @@ -42,6 +45,9 @@ public class HistoryTests #pragma warning restore CS0618 }) .Build(); + + // set receivers + var _rcvRepo = _host.Services.GetRequiredService>(); } [TearDown]