public void Handle(TestAggregateDidSomethingElse2 message) { TestSaga saga = GetSaga(message.Id); saga.Handle(message); SagaUnitOfWork.Add(saga); SagaUnitOfWork.Commit(); }
public void Handle(TestAggregateDidSomethingElse2 message) { // This could happen out of order in this test if (DidSomething) { CommandPublisher.Publish(new TestAggregateDoSomething3()); // This is a testing variable Responded = true; } ApplyChange(message); }