public PlaceCommand(ToyRobot toy, PlacementCoordinates placementVar)
 {
     toyRobot            = toy;
     xCoordinate         = placementVar.XPlacement;
     yCooridinate        = placementVar.YPlacement;
     startingOrientation = placementVar.orientations;
 }
    private void CheckCommand(Commands command)
    {
        switch (command)
        {
        case Commands.Place:
            placementCoordinates = testCase.ReturnPlacementCoordinates(PlacementCoordinatesIndex);
            PlaceCommand placeCommand = new PlaceCommand(toyRobot, placementCoordinates);
            commandExucute.ExcutePlace(placeCommand);
            PlacementCoordinatesIndex++;
            break;

        case Commands.Move:
            MoveCommand moveCommand = new MoveCommand(toyRobot);
            commandExucute.ExcuteMovement(moveCommand);
            break;

        case Commands.Left:
        case Commands.Right:
            RotateCommand rotateCommand = new RotateCommand(toyRobot, command);
            commandExucute.ExcuteRotate(rotateCommand);
            break;

        case Commands.Report:
            ReportCommand reportCommand = new ReportCommand(toyRobot);
            commandExucute.ExcuteReport(reportCommand);
            break;
        }
    }