update to create key by EncodeEnvelopeReceiverId

This commit is contained in:
2025-09-01 15:42:33 +02:00
parent 87c5e7e4de
commit 20d312a84e
3 changed files with 46 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
using EnvelopeGenerator.Application.Histories.Commands;
using EnvelopeGenerator.Application.Extensions;
using EnvelopeGenerator.Application.Histories.Commands;
using EnvelopeGenerator.Application.Histories.Queries;
using EnvelopeGenerator.Domain.Constants;
@@ -25,13 +26,14 @@ public class HistoryTests : TestBase
/// Arrange
// Create envelope
var createEnvelopeCmd = FakeCreateEnvelopeCommand;
var envelope = await Mediator.Send(createEnvelopeCmd);
var envelope = await Mediator.Send(createEnvelopeCmd).ThrowIfNull(Exceptions.NotFound);
// Create receiver
var createReceiverCmd = this.CreateReceiverCommand();
(int receiverId, _) = await Mediator.Send(createReceiverCmd);
(var receiver, _) = await Mediator.Send(createReceiverCmd);
var key = (envelope.Uuid, receiver.Signature).EncodeEnvelopeReceiverId();
var key = string.Empty;
var createCmd = Fake.Provider.CreateHistoryCommand(key);
// Act