예제 #1
0
 public void TestCreateThenExecuteResizingCommand()
 {
     _canvasDrawer.CreateThenExecuteResizingCommand(new ShapeDrawerMock(new Point(), new Point()), new Point(), new Point());
     Assert.IsTrue(_commandsManager.IsCalledAddThenExecuteCommand);
 }
예제 #2
0
 /// <summary>
 /// Handles the canvas left mouse released.
 /// </summary>
 public void HandleCanvasLeftMouseReleased(Point mousePosition)
 {
     _canvasDrawer.CreateThenExecuteResizingCommand(_currentResizingShapeShapeDrawer, _currentResizingShapeOldDrawingEndingPoint, _currentResizingShapeShapeDrawer.DrawingEndingPoint);
     _canvasDrawer.SetCurrentState(new CanvasDrawerPointerState(_canvasDrawer));
     _canvasDrawer.NotifyCurrentShapeChanged(); // Only notify after `CanvasDrawerPointerState` is completely created.
 }