private static async Task <AS4Message> ExerciseCreateReceiptAsync(MessagingContext ctx)
        {
            var        sut    = new CreateAS4ReceiptStep();
            StepResult result = await sut.ExecuteAsync(ctx);

            return(result.MessagingContext.AS4Message);
        }
        public async Task Fails_To_Create_NonRepudiation_Unsigned_Receipt()
        {
            // Arrange
            var as4Message = AS4Message.Create(new UserMessage($"user-{Guid.NewGuid()}"));
            var fixture    = new MessagingContext(
                as4Message, MessagingContextMode.Receive)
            {
                ReceivingPMode = new ReceivingProcessingMode
                {
                    ReplyHandling =
                    {
                        ReceiptHandling = { UseNRRFormat = true  },
                        ResponseSigning = { IsEnabled    = false }
                    }
                }
            };

            var sut = new CreateAS4ReceiptStep();

            // Act
            StepResult result = await sut.ExecuteAsync(fixture);

            // Assert
            Assert.False(result.Succeeded);
            Assert.NotNull(result.MessagingContext.ErrorResult);
        }