public void initial_position_cannot_be_set_twice() { var newTag = CheckpointTag.FromPosition(100, 50); _positionTracker.UpdateByCheckpointTagForward(newTag); _positionTracker.UpdateByCheckpointTagForward(newTag); }
public void cannot_update_to_the_same_postion() { Assert.Throws <InvalidOperationException>(() => { var newTag = CheckpointTag.FromStreamPosition(0, "stream1", 2); _positionTracker.UpdateByCheckpointTagForward(newTag); }); }
public void it_cannot_be_updated_forward() { Assert.Throws <InvalidOperationException>(() => { var newTag = CheckpointTag.FromStreamPosition(0, "stream1", 1); _positionTracker.UpdateByCheckpointTagForward(newTag); }); }
public void it_cannot_be_updated_forward() { var newTag = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(100, 50), new Dictionary <string, long> { { "type1", 10 }, { "type2", 20 } }); Assert.Throws <InvalidOperationException>(() => { _positionTracker.UpdateByCheckpointTagForward(newTag); }); }
public void it_cannot_be_updated_forward() { var newTag = CheckpointTag.FromStreamPositions(0, new Dictionary <string, int> { { "stream1", 10 }, { "stream2", 20 } }); _positionTracker.UpdateByCheckpointTagForward(newTag); }
public void initial_position_cannot_be_set_twice() { Assert.Throws <InvalidOperationException>(() => { var newTag = CheckpointTag.FromPosition(0, 100, 50); _positionTracker.UpdateByCheckpointTagForward(newTag); _positionTracker.UpdateByCheckpointTagForward(newTag); }); }
public void cannot_update_to_the_same_position() { var newTag = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(20, 15), new Dictionary <string, int> { { "type1", 1 }, { "type2", 3 } }); _positionTracker.UpdateByCheckpointTagForward(newTag); }
public void it_cannot_be_updated_forward() { var newTag = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(100, 50), new Dictionary <string, int> { { "type1", 10 }, { "type2", 20 } }); _positionTracker.UpdateByCheckpointTagForward(newTag); }
public void cannot_update_to_the_same_postion() { var newTag = CheckpointTag.FromStreamPositions(0, new Dictionary <string, int> { { "stream1", 1 }, { "stream2", 3 } }); _positionTracker.UpdateByCheckpointTagForward(newTag); }
public void cannot_update_to_the_same_position() { var newTag = CheckpointTag.FromEventTypeIndexPositions(0, new TFPos(20, 15), new Dictionary <string, long> { { "type1", 1 }, { "type2", 3 } }); Assert.Throws <InvalidOperationException>(() => { _positionTracker.UpdateByCheckpointTagForward(newTag); }); }
public void cannot_update_to_the_same_postion() { Assert.Throws <InvalidOperationException>(() => { var newTag = CheckpointTag.FromStreamPositions(0, new Dictionary <string, long> { { "stream1", 1 }, { "stream2", 3 } }); _positionTracker.UpdateByCheckpointTagForward(newTag); }); }
public void it_cannot_be_updated_forward() { Assert.Throws <InvalidOperationException>(() => { var newTag = CheckpointTag.FromStreamPositions(0, new Dictionary <string, long> { { "stream1", 10 }, { "stream2", 20 } }); _positionTracker.UpdateByCheckpointTagForward(newTag); }); }
public void When() { // given _tagger = new StreamPositionTagger(0, "stream1"); _positionTracker = new PositionTracker(_tagger); var newTag = CheckpointTag.FromStreamPosition(0, "stream1", 1); var newTag2 = CheckpointTag.FromStreamPosition(0, "stream1", 2); _positionTracker.UpdateByCheckpointTagInitial(newTag); _positionTracker.UpdateByCheckpointTagForward(newTag2); }
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 cannot_update_to_the_same_postion() { var newTag = CheckpointTag.FromStreamPosition("stream1", 2); _positionTracker.UpdateByCheckpointTagForward(newTag); }
public void cannot_update_to_the_same_postion() { var newTag = CheckpointTag.FromPosition(0, 100, 50); _positionTracker.UpdateByCheckpointTagForward(newTag); }
public void it_cannot_be_updated_forward() { var newTag = CheckpointTag.FromStreamPosition(0, "stream1", 1); _positionTracker.UpdateByCheckpointTagForward(newTag); }