コード例 #1
0
 private static void GetAllTest(InMemoryCarDal inMemoryCarDal)
 {
     foreach (var car in inMemoryCarDal.GetAll())
     {
         Console.WriteLine(
             "* Aciklama: {0} | Ücret: {1} | Yıl: {2} | Marka: {3} | Renk: {4} ", car.Description,
             car.DailyPrice,
             car.ModelYear,
             car.BrandId,
             car.ColorId);
     }
     ;;
 }
コード例 #2
0
        private static void AddTestInMemory(InMemoryCarDal inMemoryCarDal)
        {
            inMemoryCarDal.Add(new Car {
                Id = 8, BrandId = 8, ColorId = 8, DailyPrice = 800000, ModelYear = "1972", Description = "Yeni Retro"
            });

            foreach (var car in inMemoryCarDal.GetAll())
            {
                Console.WriteLine(
                    "* Aciklama: {0} | Ücret: {1} | Yıl: {2} | Marka: {3} | Renk: {4} ", car.Description,
                    car.DailyPrice,
                    car.ModelYear,
                    car.BrandId,
                    car.ColorId);
            }
            ;
        }
コード例 #3
0
 public List <Car> GetAll()
 {
     return(_carDal.GetAll());
 }
コード例 #4
0
 public List <Car> GetAll()
 {
     return(_ınMemoryCarDal.GetAll());
 }