Beispiel #1
0
        static void RentCarTest(DateTime rentDate, DateTime returnDate, int carId, int customerId, int Id)
        {
            RentalManager rentalManager = new RentalManager(new EfRentalDal());
            Rental        rental        = new Rental();

            rental.RentDate   = rentDate;
            rental.ReturnDate = returnDate;
            rental.CarId      = carId;
            rental.CustomerId = customerId;
            rental.Id         = Id;
            rentalManager.CarRentable(carId);
        }