private static void CollorsAdd() { ColorManager colorManager = new ColorManager(new EfColorDal()); List <Color> colors = new List <Color> { new Color { Id = 1, ColorName = "Red" }, new Color { Id = 2, ColorName = "White" }, new Color { Id = 3, ColorName = "Blue" }, new Color { Id = 4, ColorName = "Yellow" }, new Color { Id = 5, ColorName = "Green" } }; foreach (var item in colors) { colorManager.AddColor(item); } Console.WriteLine("işlem tamam"); }
private static void AddColorTest() { ColorManager colorManager = new ColorManager(new EfColorDal()); colorManager.AddColor(new Color { ColorName = "Füme" }); }
private static Color AddColor(ColorManager colorManager) { Color color1 = new Color { AddedDate = DateTime.Now, Name = "Gri" }; colorManager.AddColor(color1); return(color1); }
private static void renkEkle(ColorManager colorManager) { Color color1 = new Color { ColorID = 1, ColorName = "Kırmızı" }; colorManager.AddColor(color1); Console.WriteLine("Renk eklendi , Eklenen renk : {0}", color1.ColorName); }
private static void RenkSilmeTesti() { NColor color = new NColor(); color.ColorName = "SİLİNECEK OLAN RENK"; ColorManager colorManager = new ColorManager(new EfColorDAL()); colorManager.AddColor(color); ColorTest(); Console.WriteLine("----SİLME İŞLEMİ DEVREYE SOKULUYOR---"); colorManager.DeleteColor(color); ColorTest(); }
private static void AddColor(NColor color) { ColorManager colorManager = new ColorManager(new EfColorDAL()); colorManager.AddColor(color); }