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(); }
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"); } }
public Container2Page1(PrototypeApp app) : base(app) { }
public Container1Page0(PrototypeApp app) : this(app, null) { }