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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user