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; } }
public void starting_from_nothing() { theController.Start(0, 0); assertNoRangeWasEnqueued(); }