예제 #1
0
 public IRobot ExecuteCommand(IRobot rover, string commandText)
 {
     ValidateCommand(commandText);
     robotAction = robotActionResolver.GetRobotAction(commandText);
     return(robotAction.Excecute(rover));
 }
예제 #2
0
        private static void Initialize(IRobotActionResolver robotActionResolver)
        {
            var initailizeCommand = robotActionResolver.GetRobotAction(((char)CommandEnum.Initialize).ToString());

            rover = initailizeCommand.Excecute(rover);
        }