public ChangeHeightCommandTests()
 {
     shape = new Shape();
     shape.Height = 10;
     changeHeightCommand = new ChangeHeightCommand(shape, 50);
 }
Esempio n. 2
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);
     }
 }
Esempio n. 3
0
 public CommandProcessorTests()
 {
     commandProcessor = new CommandProcessor();
     shape = new Shape();
 }
 public ChangeWidthCommandTests()
 {
     shape = new Shape();
     shape.Width = 10;
     changeWidthCommand = new ChangeWidthCommand(shape, 50);
 }