Esempio n. 1
0
 public Computer(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
 {
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = new VideoCard();
     this.Motherboard = new Motherboard(this.Ram, this.VideoCard);
 }
Esempio n. 2
0
 public Computer(ComputerType type, IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
 {
     // TODO: validate
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     this.Motherboard = motherboard;
 }
Esempio n. 3
0
 public ServerComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
     : base(ComputerType.SERVER, motherboard, cpu, ram, hardDrives, videoCard)
     {
     }
Esempio n. 4
0
 public Server(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
     : base(cpu, ram, hardDrives)
 {
     this.VideoCard.IsMonochrome = true;
 }
Esempio n. 5
0
 public LaptopComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard, LaptopBattery battery)
     : base(ComputerType.LAPTOP, motherboard, cpu, ram, hardDrives, videoCard)
 {
     this.battery = battery;
 }
Esempio n. 6
0
 public Laptop(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives, LaptopBattery battery)
     : base(cpu, ram, hardDrives)
 {
     this.Battery = battery;
     this.VideoCard.IsMonochrome = false;
 }
Esempio n. 7
0
 public PersonalComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
     : base(ComputerType.PC, motherboard, cpu, ram, hardDrives, videoCard)
 {
 }
Esempio n. 8
0
 public PC(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
     : base(cpu, ram, hardDrives)
 {
     this.VideoCard.IsMonochrome = false;
 }