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); } ;; }
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); } ; }
public List <Car> GetAll() { return(_carDal.GetAll()); }
public List <Car> GetAll() { return(_ınMemoryCarDal.GetAll()); }