public void Initiate_AdditionalInitialser_CorrectlyCalled()
        {
            //Arrange
            var correlationId     = Guid.NewGuid();
            var initiatingMessage = new MySagaAdditionalInitialser(correlationId);

            // Act
            sut.Consume(initiatingMessage);

            // Assert
            var saga = repository.Find <MySaga>(correlationId);

            saga.SagaData.IsInitialised.Should().BeFalse();
            saga.SagaData.IsAdditionalInitialiserCalled.Should().BeTrue();
            saga.CorrelationId.Should().Be(correlationId);
        }
Exemple #2
0
        public OperationResult Initiate(MySagaAdditionalInitialser message)
        {
            SagaData.IsAdditionalInitialiserCalled = true;

            return(new OperationResult());
        }