private static void DeleteServiceForRental() { RentalManager rentalManager = new RentalManager(new EfRentalDal()); Console.WriteLine("------------------- DeleteService(Rental rental) Test-------------------\n"); var result = rentalManager.DeleteService(new Rental() { Id = 2, CarId = 3, CustomerId = 2, RentDate = DateTime.Today }); Console.WriteLine(result.Message); }