コード例 #1
0
        public void mark_high_water_with_no_activity_small()
        {
            theController.Start(0, 0);
            theController.MarkHighWater(100);

            assertRangeWasEnqueued(0, 100);
        }
コード例 #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;
            }
        }