chore: update Core.Abstraction.Application to 1.3.1

- update DigitalData.Core.Abstractions to 4.1.1
 - update DigitalData.Core.Infrastructure to 2.4.1
This commit is contained in:
2025-09-15 10:38:01 +02:00
parent 86780477fe
commit 796c59cd38
7 changed files with 40 additions and 14 deletions

View File

@@ -1,15 +1,40 @@
namespace EnvelopeGenerator.Tests.Application;
using DigitalData.Core.Abstraction.Application;
using DigitalData.Core.Abstraction.Application.Repository;
using EnvelopeGenerator.Domain.Entities;
using System.Threading.Tasks;
public class DocSignedNotificationTests
namespace EnvelopeGenerator.Tests.Application;
public class DocSignedNotificationTests : TestBase
{
[SetUp]
public void Setup()
{
}
[Test]
public void Test1()
[TestCase("h.tek@digitaldata.works")]
public async Task Test1(string emailAddress)
{
CancellationToken cancel = new();
/// Assert
var mediator = Mediator;
// Create envelope
var envCmd = this.CreateEnvelopeCommand(User.Id);
var env = await mediator.Send(envCmd, cancel);
// Create receiver
var rcvCmd = this.CreateReceiverCommand(emailAddress);
(var rcv, _) = await mediator.Send(rcvCmd, cancel);
// Create envelope receiver
var envRcv = this.CreateEnvelopeReceiver(env!.Id, rcv.Id);
await Repository.CreateAsync<EnvelopeReceiver>(envRcv, cancel);
// Act
Assert.Pass();
}
}