Esempio n. 1
0
    static void Main()
    {
        OrderState OrderState = new OrderState();

        OrderState.Register();
        OrderState.Approve();
        OrderState.Dispatch();
    }
Esempio n. 2
0
        static void Main(string[] args)
        {
            AdapterExample testAdapter = new AdapterExample();

            testAdapter.TestAdapter();

            Console.WriteLine("\n**********\n");

            ChainOfResponsibilityExample testChainOfResponsibility = new ChainOfResponsibilityExample();

            testChainOfResponsibility.TestChainOfResponsibility();

            Console.WriteLine("\n**********\n");

            Secretary testCommand = new Secretary();

            testCommand.PrintDocument();

            Console.WriteLine("\n**********\n");

            FacadeExample testFacade = new FacadeExample();

            testFacade.TestFacade();

            Console.WriteLine("\n**********\n");

            Furniture testAbstractFactory = new Furniture();

            testAbstractFactory.TestFurniture();

            Console.WriteLine("\n**********\n");

            FactoryMethodExample testFactoryMethod = new FactoryMethodExample();

            testFactoryMethod.TestFactoryMethod();

            Console.WriteLine("\n**********\n");

            OrderState OrderState = new OrderState();

            OrderState.Register();
            OrderState.Approve();
            OrderState.Dispatch();
        }