private static void BrandUpdateTest(ref BrandManager brandManager) { var entity = brandManager.GetAllByName("Skoda")?.Data.SingleOrDefault(); entity.BrandName = "Volkswagen"; brandManager.Update(entity); }
private static void BrandtGetTest(ref BrandManager brandManager) { foreach (var brand in brandManager.GetAllByName("Volkswagen").Data) { Console.WriteLine(brand.BrandName); } }
private static void BrandtDeleteTest(ref BrandManager brandManager) { var entity = brandManager.GetAllByName("Reno")?.Data.SingleOrDefault(); brandManager.Delete(entity); }