public override PC GetPC() { var ram = new RAM(PCRAMAmount); var hardDrive = new HardDriver(PCHardDriveCapacity); var videoCard = new MonochromeVideoCard(); var motherboard = new Motherboard(ram, videoCard); var cpu = new CPU(PCNumberOfCores, PCBits, motherboard); PC pc = new PC(cpu, ram, hardDrive, videoCard); return pc; }
public override Server GetServer() { var ram = new RAM(ServerRAMAmount); var hardDrives = new List<HardDriver>() { new HardDriver(ServerHardDriveCapacityPerUnit), new HardDriver(ServerHardDriveCapacityPerUnit) }; var raid = new HardDriver(hardDrives); var videoCard = new MonochromeVideoCard(); var motherboard = new Motherboard(ram, videoCard); var cpu = new CPU(ServerNumberOfCores, ServerBits, motherboard); Server server = new Server(cpu, ram, raid, videoCard); return server; }