private static void SomeFunctionThatAcceptsRobot(IRobot robot) { robot.ReactToHuman("Pavel"); robot.TurnLeft(); robot.GoToDock(); }