Пример #1
0
 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;
 }
Пример #2
0
 public override void GetAllProducts(out PC pc, out Server server, out Laptop laptop)
 {
     pc = this.GetPC();
     server = this.GetServer();
     laptop = this.GetLaptop();
 }