Example #1
0
        static void Main(string [] args)
        {
            Console.WriteLine("-------- CREATIONALS PATTERNS --------");
            Console.WriteLine();

            Console.WriteLine("-------- ABSTRACT FACTORY --------");
            AbstractFactoryMundoAnimalApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- BUILDER --------");
            VeiculoBuilderApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- FACTORY --------");
            FactoryDocumentApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- SINGLETON --------");
            SingletonApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- PROTOTYPE --------");
            PrototypeCoresApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- STRUCTURALS PATTERNS --------");
            Console.WriteLine();

            Console.WriteLine("-------- ADAPTER --------");
            AdapterApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- BRIDGE --------");
            BridgeApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- COMPOSITE --------");
            CompositeApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- DECORATOR --------");
            DecoratorApp.Execute();

            Console.WriteLine();

            Console.WriteLine("-------- FACADE --------");
            FacadeHipotecaApp.Execute();
        }
Example #2
0
        static void Main(string[] args)
        {
            // Creational
            AbstractFactoryApp.Execute();
            FactoryMethodApp.Execute();
            SingletonApp.Execute();

            // Structural
            AdapterApp.Execute();
            FacadeApp.Execute();
        }