Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Assert.AreEqual(args, null);

            #region Creational Patterns
            //Abstract Factory;
            AbstractFactoryExample.AbstractFactory();

            #endregion

            //Adapter
            AdapterExample.Adapter();

            #region beavioural Patterns
            // Visitor
            Visitor visitor = new Visitor();
            visitor.Main();

            //Decorator
            DecoratorExample.Decorator();

            //Command
            CommandExample.Command();

            //Observer
            ObserverExample.Observer();

            #endregion

            //BusinessDelegate
            BusinessDelegateExample.BusinessDelegate();

            //DataTransferObject
            DataTransferObjectExample transferObjectExample = new DataTransferObjectExample();
            transferObjectExample.StartDemo();

            //UnitOfWork
            UnitOfWorkExample.UnitOfWork();
        }
Exemplo n.º 2
0
        public void DataTransferObject()
        {
            DataTransferObjectExample dataTransferObjectExample = new DataTransferObjectExample();

            dataTransferObjectExample.StartDemo();
        }