public void commit_replicated_message_should_have_been_published_for_first_two_events()
 {
     AssertEx.IsOrBecomesTrue(() => 2 == CommitReplicatedMgs.Count);
     Assert.True(CommitReplicatedMgs.TryDequeue(out var msg));
     Assert.AreEqual(_logPositionP1, msg.TransactionPosition);
     Assert.True(CommitReplicatedMgs.TryDequeue(out msg));
     Assert.AreEqual(_logPositionP2, msg.TransactionPosition);
 }
Esempio n. 2
0
 public void commit_replicated_message_should_have_been_published_for_both_events()
 {
     AssertEx.IsOrBecomesTrue(() => 2 == CommitReplicatedMgs.Count);
     Assert.True(CommitReplicatedMgs.TryDequeue(out var msg));
     Assert.AreEqual(_correlationId1, msg.CorrelationId);
     Assert.True(CommitReplicatedMgs.TryDequeue(out msg));
     Assert.AreEqual(_correlationId2, msg.CorrelationId);
 }