static void Main(string[] args) { Console.WriteLine("------CLIENT ORDERS FOR PIZZA--------\n"); var facadeForClient = new RestaurantFacade(); facadeForClient.GetNonVegPizza(); facadeForClient.GetVegPizza(); Console.WriteLine("\n-------CLIENT ORDERS FOR BREAD--------\n"); facadeForClient.GetGarlicBread(); facadeForClient.GetCheesyGarlicBread(); }
static void Main(string[] args) { // the client is using the restaurant façade class to order pizza and bread of different types // without directly interacting with the subclasses. Console.WriteLine("----------------------CLIENT ORDERS FOR PIZZA----------------------------\n"); var facadeForClient = new RestaurantFacade(); facadeForClient.GetNonVegPizza(); facadeForClient.GetVegPizza(); Console.WriteLine("\n----------------------CLIENT ORDERS FOR BREAD----------------------------\n"); facadeForClient.GetGarlicBread(); facadeForClient.GetCheesyGarlicBread(); Console.ReadKey(); }