public VehiculoDTO AnyadirVehiculo(VehiculoDTO vehiculoDTO)
        {
            using (var unitOfWork = _unitOfWorkFactory.Create())
            {
                Ensure.Argument.NotNull(vehiculoDTO, "vehiculo not null");

                var vehiculo = new Vehiculo(vehiculoDTO.Marca, vehiculoDTO.Modelo, vehiculoDTO.Potencia);

                _vehiculoRepository.Add(vehiculo);
                unitOfWork.Commit();

                return vehiculo.Map<Vehiculo, VehiculoDTO>();
            }
        }
        public void ModificarDatosVehiculo(VehiculoDTO vehiculoDTO)
        {
            using (var unitOfWork = _unitOfWorkFactory.Create())
            {
                Ensure.Argument.NotNull(vehiculoDTO, "vehiculo not null");

                var vehiculo = _vehiculoRepository.Get(vehiculoDTO.Id);
                Ensure.NotNull<NotFoundException>(vehiculo, String.Format("Vehiculo with id {0} not found", vehiculoDTO.Id));

                vehiculo.ChangeMarca(vehiculoDTO.Marca);
                vehiculo.ChangeModelo(vehiculoDTO.Modelo);
                vehiculo.ChangePotencia(vehiculoDTO.Potencia);

                _vehiculoRepository.Update(vehiculo);
                unitOfWork.Commit();

                vehiculoDTO = vehiculo.Map<Vehiculo, VehiculoDTO>();
            }
        }