Example #1
0
        static void Main(string[] args)
        {
            #region Pattern de Criação

            Console.WriteLine("########### PATTERNS DE CRIAÇÃO #############");
            Console.WriteLine("");

            SingletonApp.Executar();
            FactoryMethodApp.Executar();
            BuilderApp.Executar();
            PrototypeApp.Executar();

            #endregion

            #region Pattern Estrutural

            Console.WriteLine("########### PATTERNS ESTRUTURAL #############");
            Console.WriteLine("");

            AdapterApp.Executar();

            #endregion

            #region Pattern Comportamental

            Console.WriteLine("########### PATTERNS COMPORTAMENTAL #########");
            Console.WriteLine("");

            #endregion

            Console.ReadKey();
        }
Example #2
0
 public Container2Page1(PrototypeApp app, IHtmlElement root) : base(app)
 {
     Root = root?.Children.FirstOrDefault() as IHtmlElement;
     if (Root != null && !this.IsInPage())
     {
         throw new InvalidOperationException("The requested page is not correct");
     }
 }
Example #3
0
 public Container2Page1(PrototypeApp app) : base(app)
 {
 }
Example #4
0
 public Container1Page0(PrototypeApp app) : this(app, null)
 {
 }