public NotebookProduct BuildNotebookOEMEnvironmentOnly() { NotebookProduct product = new NotebookProduct(); product.ProductOEMEnvironment = Builder.BuildOEMEnvironment(); return(product); }
public static void PrintProductDetail(NotebookProduct product) { Console.WriteLine("GraphicCard: " + product.ProductDisplayEnvironment.GraphicCard); Console.WriteLine("ScreenWide: " + product.ProductDisplayEnvironment.ScreenWide); Console.WriteLine("ScreenResolution: " + product.ProductDisplayEnvironment.ScreenResolution); Console.WriteLine("Processor: " + product.ProductOEMEnvironment.Processor); Console.WriteLine(); }
public NotebookProduct BuildNotebook() { NotebookProduct product = new NotebookProduct(); product.ProductDisplayEnvironment = Builder.BuildDisplayEnvironment(); product.ProductOEMEnvironment = Builder.BuildOEMEnvironment(); return(product); }
public void LaptopTest() { BuilderDirector director; director = new BuilderDirector((new HighSpeedNotebook())); NotebookProduct highSpeedNotebook = director.BuildNotebook(); PrintProductDetail(highSpeedNotebook); director = new BuilderDirector((new StandartNotebook())); NotebookProduct standartSpeedNotebook = director.BuildNotebook(); PrintProductDetail(standartSpeedNotebook); Console.ReadLine(); }