- update DigitalData.Core.Abstractions to 4.1.1 - update DigitalData.Core.Infrastructure to 2.4.1
41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using DigitalData.Core.Abstraction.Application;
|
|
using DigitalData.Core.Abstraction.Application.Repository;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EnvelopeGenerator.Tests.Application;
|
|
|
|
public class DocSignedNotificationTests : TestBase
|
|
{
|
|
[SetUp]
|
|
public void Setup()
|
|
{
|
|
}
|
|
|
|
[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();
|
|
}
|
|
}
|