Exemplo n.º 1
0
        public OperationResult Initiate(MultipleSagaInitiator message)
        {
            this.SagaData.IsInitiated = true;
            var errors = new OperationResult("This is not right!");

            return(errors);
        }
Exemplo n.º 2
0
        public void Initiate_MultipleInitiator_Throws()
        {
            //Arrange
            var correlationId = Guid.NewGuid();
            var message       = new MultipleSagaInitiator(correlationId);

            // Act
            Action act = () => sut.Consume(message);

            // Assert
            act.ShouldThrow <ArgumentException>().Which.Message.Contains("initiating more than one saga");
        }
Exemplo n.º 3
0
        public OperationResult Initiate(MultipleSagaInitiator message)
        {
            SagaData.IsInitialised = true;

            return(new OperationResult());
        }