Beispiel #1
0
        public void is_message_after_checkpoint_tag_incompatible_streams_case()
        {
            var t      = new MultiStreamPositionTagger(new[] { "stream-other", "stream2" });
            var result = t.IsMessageAfterCheckpointTag(CheckpointTag.FromStreamPositions(new Dictionary <string, int> {
                { "stream-other", 0 }, { "stream2", 0 }
            }), _firstEvent);

            Assert.IsFalse(result);
        }
Beispiel #2
0
        public void is_message_after_checkpoint_tag_equal_case()
        {
            var t      = new MultiStreamPositionTagger(0, new[] { "stream1", "stream2" });
            var result =
                t.IsMessageAfterCheckpointTag(
                    CheckpointTag.FromStreamPositions(0, new Dictionary <string, int> {
                { "stream1", 1 }, { "stream2", 1 }
            }),
                    _firstEvent);

            Assert.IsFalse(result);
        }