/// <summary> /// Initializes a new instance of the <see cref="MarsRoverEngine"/> class. /// </summary> /// <param name="vehicle">The vehicle.</param> /// <param name="commands">The commands.</param> public MarsRoverEngine(IVehicleOperations vehicle, IEnumerable <VehicleCommand> commands) { this.vehicle = vehicle; this.commands = commands; }
public VehiclesController(IVehicleOperations bal) { _VehicleOperations = bal; }
/// <summary> /// Initializes a new instance of the <see cref="VehicleStatus"/> struct. /// </summary> /// <param name="vehicle">The implicit vehicle.</param> public VehicleStatus(IVehicleOperations vehicle) { this.InTerrainLimits = vehicle.InValidPosition(); this.Orientation = vehicle.CurrentOrientation; this.Position = vehicle.CurrentPosition; }