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

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