//It’s especially useful when working with complex libraries and APIs static void Main() { var pan = new Pan(); var stove = new Stove(pan); var chicken = new Chicken(); ICookingFacade facade = new CookingFacade(stove, pan, chicken); Console.WriteLine(facade.GetChickenOnStove()); }
public Stove(Pan pan) { this.pan = pan; }
public CookingFacade(Stove stove, Pan pan, Chicken chicken) { this.stove = stove; this.pan = pan; this.chicken = chicken; }