Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Client need to buy a milk tea by cash and freeshipping.");

            ShopFacade.GetInstanceShopFacade().BuyMilkTeaByCashWithFreeShipping("*****@*****.**");

            // You can practice with a attached image (additional_facade_patterns.png) in order to get more knowledge.
        }
Esempio n. 2
0
        public static ShopFacade GetInstanse()
        {
            if (Instanse == null)
            {
                Instanse = new ShopFacade();
            }

            return(Instanse);
        }
 static void Main(string[] args)
 {
     ShopFacade.GetInstanse().BuyProductByCashWithFreeShipping("*****@*****.**");
     ShopFacade.GetInstanse().BuyProductByPaypalWithStandardShipping("*****@*****.**", "1231213");
     Console.ReadLine();
 }