Exemple #1
0
 public static Desktop CreateDesktop()
 {
     return(new Desktop(CoolerFactory.CreateCooler(), CPUFactory.CreateCPU(), DiskFactory.CreateSSD(), GPUFactory.CreateGPU(),
                        MotherboardFactory.CreateMotherboard(), PowerUnitFactory.CreatePowerUnit(), RAMFactory.CreateRAM()));
 }
Exemple #2
0
 public static Laptop CreateLaptop()
 {
     return(new Laptop(CPUFactory.CreateCPU(), DisplayFactory.CreateDisplay(), DiskFactory.CreateHDD(),
                       GPUFactory.CreateGPU(), "ASUS", "UX610", MotherboardFactory.CreateMotherboard(), PowerUnitFactory.CreatePowerUnit(), RAMFactory.CreateRAM()));
 }