public void GetCarById_Success() {
            // Arrange
            const int carId = 4;
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 1, User = _currentUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 2, User = _currentUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 3, User = _currentUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 4, User = _currentUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 5, User = _currentUser });
            var carService = new CarService(_fakeApplicationDbContext, _mockCurrentUserService.Object);

            // Act
            var car = carService.GetCarById(carId);

            // Assert
            Assert.IsNotNull(car);
            Assert.AreEqual(carId, car.Id);
        }
        public void GetCarById_NotAllowed() {
            // Arrange
            const int carId = 4;
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 1, User = _currentUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 2, User = _currentUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 3, User = _currentUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 4, User = _otherUser });
            _fakeApplicationDbContext.Cars.Add(new Car { Id = 5, User = _currentUser });
            var carService = new CarService(_fakeApplicationDbContext, _mockCurrentUserService.Object);

            // Act
            var car = carService.GetCarById(carId);

            // Assert
            Assert.IsNull(car);
        }