Пример #1
0
 private void UndoMany(CommandProcessor shapeEditor, Int32 numberOfTimes)
 {
     for (var i = 0; i < numberOfTimes; i++)
         shapeEditor.Undo();
 }
Пример #2
0
 public CommandProcessorTests()
 {
     commandProcessor = new CommandProcessor();
     shape = new Shape();
 }
Пример #3
0
 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);
     }
 }