Ejemplo 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.
        }
Ejemplo n.º 2
0
        public static ShopFacade GetInstanse()
        {
            if (Instanse == null)
            {
                Instanse = new ShopFacade();
            }

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