public void it_can_be_updated() { // even not initialized (UpdateToZero can be removed) var newTag = CheckpointTag.FromPosition(100, 50); _positionTracker.UpdateByCheckpointTagInitial(newTag); }
public void it_can_be_updated_with_correct_stream() { // even not initialized (UpdateToZero can be removed) var newTag = CheckpointTag.FromStreamPosition(0, "stream1", 1); _positionTracker.UpdateByCheckpointTagInitial(newTag); }
public void it_can_be_updated_with_correct_event_types() { // even not initialized (UpdateToZero can be removed) var newTag = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(100, 50), new Dictionary <string, long> { { "type1", 10 }, { "type2", 20 } }); _positionTracker.UpdateByCheckpointTagInitial(newTag); }
public void it_can_be_updated_with_correct_streams() { // even not initialized (UpdateToZero can be removed) var newTag = CheckpointTag.FromStreamPositions(0, new Dictionary <string, int> { { "stream1", 10 }, { "stream2", 20 } }); _positionTracker.UpdateByCheckpointTagInitial(newTag); }
public void When() { _tagger = new StreamPositionTagger("stream1"); _positionTracker = new PositionTracker(_tagger); // when _positionTracker.UpdateByCheckpointTagInitial(_tagger.MakeZeroCheckpointTag()); }
public void When() { _tagger = new EventByTypeIndexPositionTagger(new[] { "type1", "type2" }); _positionTracker = new PositionTracker(_tagger); // when _positionTracker.UpdateByCheckpointTagInitial(_tagger.MakeZeroCheckpointTag()); }
public void When() { _tagger = new MultiStreamPositionTagger(0, new[] { "stream1", "stream2" }); _positionTracker = new PositionTracker(_tagger); // when _positionTracker.UpdateByCheckpointTagInitial(_tagger.MakeZeroCheckpointTag()); }
public void When() { // given _tagger = new TransactionFilePositionTagger(0); _positionTracker = new PositionTracker(_tagger); var newTag = CheckpointTag.FromPosition(0, 100, 50); _positionTracker.UpdateByCheckpointTagInitial(newTag); }
public void When() { // given _tagger = new StreamPositionTagger("stream1"); _positionTracker = new PositionTracker(_tagger); var newTag = CheckpointTag.FromStreamPosition("stream1", 1, 50); _positionTracker.UpdateByCheckpointTagInitial(newTag); }
public void When() { // given _tagger = new PreparePositionTagger(); _positionTracker = new PositionTracker(_tagger); var newTag = CheckpointTag.FromPreparePosition(50); _positionTracker.UpdateByCheckpointTagInitial(newTag); }
public void When() { // given _tagger = new EventByTypeIndexPositionTagger(0, new[] { "type1", "type2" }); _positionTracker = new PositionTracker(_tagger); var newTag = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(10, 5), new Dictionary <string, int> { { "type1", 1 }, { "type2", 2 } }); var newTag2 = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(20, 15), new Dictionary <string, int> { { "type1", 1 }, { "type2", 3 } }); _positionTracker.UpdateByCheckpointTagInitial(newTag); _positionTracker.UpdateByCheckpointTagForward(newTag2); }
public void When() { // given _tagger = new MultiStreamPositionTagger(0, new [] { "stream1", "stream2" }); _positionTracker = new PositionTracker(_tagger); var newTag = CheckpointTag.FromStreamPositions(0, new Dictionary <string, long> { { "stream1", 1 }, { "stream2", 2 } }); var newTag2 = CheckpointTag.FromStreamPositions(0, new Dictionary <string, long> { { "stream1", 1 }, { "stream2", 3 } }); _positionTracker.UpdateByCheckpointTagInitial(newTag); _positionTracker.UpdateByCheckpointTagForward(newTag2); }
public void When() { // given var tagger = new PreparePositionTagger(0); var positionTracker = new PositionTracker(tagger); var newTag = CheckpointTag.FromPreparePosition(0, 50); positionTracker.UpdateByCheckpointTagInitial(newTag); _tag = positionTracker.LastTag; _tagger = new PreparePositionTagger(0); _positionTracker = new PositionTracker(_tagger); // when _positionTracker.UpdateByCheckpointTagInitial(_tag); }
public void When() { // given var tagger = new StreamPositionTagger(0, "stream1"); var tracker = new PositionTracker(tagger); var newTag = CheckpointTag.FromStreamPosition(0, "stream1", 1); tracker.UpdateByCheckpointTagInitial(newTag); _tag = tracker.LastTag; _tagger = new StreamPositionTagger(0, "stream1"); _positionTracker = new PositionTracker(_tagger); // when _positionTracker.UpdateByCheckpointTagInitial(_tag); }
public void When() { // given var tagger = new TransactionFilePositionTagger(); var positionTracker = new PositionTracker(tagger); var newTag = CheckpointTag.FromPosition(100, 50); positionTracker.UpdateByCheckpointTagInitial(newTag); _tag = positionTracker.LastTag; _tagger = new TransactionFilePositionTagger(); _positionTracker = new PositionTracker(_tagger); _positionTracker.UpdateByCheckpointTagInitial(_tag); // when _positionTracker.Initialize(); }
public void When() { // given var tagger = new MultiStreamPositionTagger(0, new [] { "stream1", "stream2" }); var tracker = new PositionTracker(tagger); var newTag = CheckpointTag.FromStreamPositions(0, new Dictionary <string, long> { { "stream1", 1 }, { "stream2", 2 } }); tracker.UpdateByCheckpointTagInitial(newTag); _tag = tracker.LastTag; _tagger = new MultiStreamPositionTagger(0, new [] { "stream1", "stream2" }); _positionTracker = new PositionTracker(_tagger); // when _positionTracker.UpdateByCheckpointTagInitial(_tag); }
public void When() { // given var tagger = new EventByTypeIndexPositionTagger(0, new[] { "type1", "type2" }); var tracker = new PositionTracker(tagger); var newTag = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(10, 5), new Dictionary <string, int> { { "type1", 1 }, { "type2", 2 } }); tracker.UpdateByCheckpointTagInitial(newTag); _tag = tracker.LastTag; _tagger = new EventByTypeIndexPositionTagger(0, new[] { "type1", "type2" }); _positionTracker = new PositionTracker(_tagger); // when _positionTracker.UpdateByCheckpointTagInitial(_tag); }