示例#1
0
 public void Test_GetVegPizza()
 {
     Console.WriteLine("123");
     RestaurantFacade facade = new RestaurantFacade();
     string a = facade.GetVegPizza();
     Assert.AreEqual("Getting Veg Pizza.", a);
 }
示例#2
0
        public void GetVegPizza_ShouldReturn_GettingVegPizza()
        {
            var    facadeForClient = new RestaurantFacade();
            string str             = facadeForClient.GetVegPizza();

            Assert.Equal("Getting Veg Pizza.", str);
        }
示例#3
0
        static void Main(string[] args)
        {
            var facadeForClient = new RestaurantFacade();

            facadeForClient.GetNonVegPizza();
            facadeForClient.GetVegPizza();
            facadeForClient.GetGarlicBread();
            facadeForClient.GetCheesyGarlicBread();
            Console.ReadLine();
        }
示例#4
0
        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();
        }
示例#5
0
        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());
        }