public void Test_GetVegPizza() { Console.WriteLine("123"); RestaurantFacade facade = new RestaurantFacade(); string a = facade.GetVegPizza(); Assert.AreEqual("Getting Veg Pizza.", a); }
public void GetVegPizza_ShouldReturn_GettingVegPizza() { var facadeForClient = new RestaurantFacade(); string str = facadeForClient.GetVegPizza(); Assert.Equal("Getting Veg Pizza.", str); }
static void Main(string[] args) { var facadeForClient = new RestaurantFacade(); facadeForClient.GetNonVegPizza(); facadeForClient.GetVegPizza(); facadeForClient.GetGarlicBread(); facadeForClient.GetCheesyGarlicBread(); Console.ReadLine(); }
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(); }
public void TestFacade() { RestaurantFacade facade = new RestaurantFacade(); string a = facade.GetVegPizza(); //string b = facade.GetCheesyGarlicBread(); //string c = facade.GetGarlicBread(); Assert.Equal("Getting Veg Pizza.", a); //Assert.Equal("Getting Garlic Bread.", b); //Assert.Equal("Getting Cheesy Garlic Bread.", c); }
public ActionResult FacadeSDP() { List <string> objRestaurantItems = new List <string>(); var facadeForClient = new RestaurantFacade(); objRestaurantItems.Add(facadeForClient.GetNonVegPizza()); objRestaurantItems.Add(facadeForClient.GetVegPizza()); objRestaurantItems.Add(facadeForClient.GetGarlicBread()); objRestaurantItems.Add(facadeForClient.GetCheesyGarlicBread()); return(View()); }