public void mark_high_water_with_no_activity_small()
        {
            theController.Start(0, 0);
            theController.MarkHighWater(100);

            assertRangeWasEnqueued(0, 100);
        }
Example #2
0
        internal void Apply(ProjectionController controller)
        {
            switch (Type)
            {
            case CommandType.HighWater:
                controller.MarkHighWater(HighWaterMark);
                break;

            case CommandType.RangeCompleted:
                controller.EventRangeUpdated(Range);
                break;

            case CommandType.Start:
                controller.Start(HighWaterMark, LastCommitted);
                break;
            }
        }