public void handle_chain_started() { MessageHistory.ClearHistory(); var @event = new ChainExecutionStarted { ChainId = Guid.NewGuid(), Envelope = new EnvelopeToken() }; var sent = @event.ToMessageTrack(); sent.Id.ShouldBe(@event.Envelope.CorrelationId); sent.Description.ShouldBe(@event.ToString()); sent.Type.ShouldBe(MessageLogRecord.MessageTrackType); }
public void handle_chain_started() { MessageHistory.StartListening(); var @event = new ChainExecutionStarted { ChainId = Guid.NewGuid(), Envelope = new EnvelopeToken() }; new MessageWatcher().Handle(@event); var sent = MessageHistory.Outstanding().Single(); sent.Id.ShouldBe(@event.Envelope.CorrelationId); sent.Description.ShouldBe(@event.ToString()); sent.Type.ShouldBe(MessageWatcher.MessageTrackType); }