Exemple #1
0
        private static void CarImagesTest()
        {
            CarImageManager carImageManager = new CarImageManager(new EfCarImageDal());

            foreach (var carImage in carImageManager.GetAll().Data)
            {
                Console.WriteLine(carImage.CarId);
            }
        }
Exemple #2
0
        private static void GetAllCarImage()
        {
            CarImageManager carImageManager = new CarImageManager(new EfCarImageDal());

            foreach (var carImage in carImageManager.GetAll().Data)
            {
                Console.WriteLine(carImage.Id + "/" + carImage.CarId + "/" + carImage.ImagePath);
            }
        }
        static void Main(string[] args)
        {
            CarTest();
            RentalTest();
            UserTest();
            CustomerTest();
            CarImageManager carImageManager = new CarImageManager(new EfCarImageDal());

            foreach (var carImage in carImageManager.GetAll().Data)
            {
                Console.WriteLine(carImage.CarId + " / " + carImage.CarImageId + " / " + carImage.ImagePath + " / " + carImage.Date);
            }
        }
Exemple #4
0
        static void Main(string[] args)
        {
            //BrandManager brandManager = new BrandManager(new EfBrandDal());
            //var result = brandManager.GetAll();
            //foreach (var item in result.Data)
            //{
            //    Console.WriteLine(item.BrandName);
            //}


            CarImageManager carImageManager = new CarImageManager(new EfCarImageDal());
            var             result          = carImageManager.GetAll().Data;

            foreach (var item in result)
            {
                Console.WriteLine(item.CarId);
            }



            //RentalAdded();

            //RentListGetAll();


            //CustomerAdded();

            //GetCarDetails();

            //AddCarTest();

            //GetByIdTest();

            //GetAllTest();

            //DeleteTest();

            //UpdateTest();
        }