static void Main() { Chef test = new Chef("Some Guy"); Carrot carrot = new Carrot(); Potato potato = new Potato(); test.PrepareVegetable(carrot); test.PrepareVegetable(potato); test.Cook(potato, carrot); }
internal static void Main() { Potato goodPotato = new Potato(); Potato badPotato = new Potato(); Carrot carrot = new Carrot(); Chef gRamsay = new Chef("G - Ramsay"); gRamsay.PrepareVegetable(goodPotato); gRamsay.PrepareVegetable(carrot); Console.WriteLine("Test 1: (press any key for test 2)"); CookMeal(gRamsay, goodPotato, carrot); Console.WriteLine("Test 2:"); CookMeal(gRamsay, badPotato, carrot); }