private void UndoMany(CommandProcessor shapeEditor, Int32 numberOfTimes) { for (var i = 0; i < numberOfTimes; i++) shapeEditor.Undo(); }
public CommandProcessorTests() { commandProcessor = new CommandProcessor(); shape = new Shape(); }
private void ChangeHeightManyTimes(CommandProcessor editor, Shape shape, Int32 numberOfTimes) { for (var i = 0; i < numberOfTimes; i++) { var command = new ChangeHeightCommand(shape, i * 10); editor.Do(command); } }