public override Laptop BuildLaptopComputer() { var ram = new Ram(4); var colorfulVideoCardStrategy = new ColorfulDrawingStrategy(); var videoCard = new VideoCard(true, colorfulVideoCardStrategy); var motherboard = new Motherboard(ram, videoCard); var cpu = new Cpu64(2, motherboard); var storage = new HardDrive(500); var battery = new LaptopBattery(); var laptop = new Laptop(cpu, storage, motherboard, battery); return(laptop); }
public override Laptop BuildLaptopComputer() { var ram = new Ram(DefaultLaptopRamAmount); var colorfulVideoCardStrategy = new ColorfulDrawingStrategy(); var videoCard = new VideoCard(true, colorfulVideoCardStrategy); var motherboard = new Motherboard(ram, videoCard); var cpu = new Cpu32(DefaultLaptopCpuCores, motherboard); var storage = new HardDrive(DefaultLaptopHardDriveSize); var battery = new LaptopBattery(); var laptop = new Laptop(cpu, storage, motherboard, battery); return(laptop); }
public Laptop(Cpu cpu, StorageProvider storageProvider, IMotherboard motherboard, LaptopBattery battery) : base(cpu, storageProvider, motherboard) { this.Battery = battery; }