Exemplo n.º 1
0
        public async Task update_with_message_that_uses_saga_identity_attributed_property()
        {
            await send(new StringStart
            {
                Id   = stateId,
                Name = "Croaker"
            });

            var message = new StringDoThree
            {
                TheSagaId = stateId
            };

            await send(message);

            var state = await LoadState(stateId);

            state.ThreeCompleted.ShouldBeTrue();
        }
Exemplo n.º 2
0
 public void Handles(StringDoThree message, StringWorkflowState state)
 {
     state.ThreeCompleted = true;
 }