Пример #1
0
        public async Task update_with_message_that_uses_saga_identity_attributed_property()
        {
            await send(new IntStart
            {
                Id   = stateId,
                Name = "Croaker"
            });

            var message = new IntDoThree
            {
                TheSagaId = stateId
            };

            await send(message);

            var state = LoadState(stateId);

            state.ThreeCompleted.ShouldBeTrue();
        }
Пример #2
0
 public void Handles(IntDoThree message, IntWorkflowState state)
 {
     state.ThreeCompleted = true;
 }