示例#1
0
 public static Desktop CreateDesktop()
 {
     return(new Desktop(CoolerFactory.CreateCooler(), CPUFactory.CreateDesktopCPU(), DiskFactory.CreateDisk(), GPUFactory.CreateDesktopGPU(),
                        MotherboardFactory.CreateDesktopMotherboard(), PowerUnitFactory.CreatePSU(), RAMFactory.CreateRAM()));
 }
示例#2
0
 public static Laptop CreateLaptop()
 {
     return(new Laptop(PowerUnitFactory.CreateBattery(), CPUFactory.CreateLaptopCPU(), DisplayFactory.CreateLaptopDisplay(), DiskFactory.CreateDisk(),
                       GPUFactory.CreateLaptopGPU(), "ASUS", "UX610", MotherboardFactory.CreateLaptopMotherboard(), 800, RAMFactory.CreateRAM()));
 }