make set up Setup
This commit is contained in:
parent
14a565d202
commit
e49be2b7c3
@ -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<IMediator>();
|
||||
|
||||
[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<IRepository<Receiver>>();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user